From 749dbd576f98d928fc4bc6a5116640d98f2f6dce Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 18 Aug 2019 03:16:01 +0300 Subject: qcam: Remove double stop of the camera manager The camera manager is stopped both in the destructor of the MainWindow class and in the main() function. This double stop isn't needed, remove the former and keep the latter as the manager is started in the main() function. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi --- src/qcam/main_window.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp index dcb653e8..33fde8b1 100644 --- a/src/qcam/main_window.cpp +++ b/src/qcam/main_window.cpp @@ -51,8 +51,6 @@ MainWindow::~MainWindow() camera_->release(); camera_.reset(); } - - CameraManager::instance()->stop(); } void MainWindow::updateTitle() -- cgit v1.2.1