android: camera_hal_manager: Clean up resources when terminating
The CameraHalManager starts the libcamera CameraManager and creates CameraProxy instances for each camera in the system. Clean up those resources when the CameraHalManager terminates. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -90,6 +90,10 @@ void CameraHalManager::run()
|
||||
|
||||
/* Now start processing events and messages. */
|
||||
exec();
|
||||
|
||||
/* Clean up the resources we have allocated. */
|
||||
proxies_.clear();
|
||||
cameraManager_->stop();
|
||||
}
|
||||
|
||||
CameraProxy *CameraHalManager::open(unsigned int id,
|
||||
|
||||
Reference in New Issue
Block a user