summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/android/camera_hal_manager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/android/camera_hal_manager.cpp b/src/android/camera_hal_manager.cpp
index a1ffb371..cf981720 100644
--- a/src/android/camera_hal_manager.cpp
+++ b/src/android/camera_hal_manager.cpp
@@ -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,