diff options
Diffstat (limited to 'src/qcam')
-rw-r--r-- | src/qcam/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qcam/main.cpp b/src/qcam/main.cpp index 05d3b77e..a7ff5c52 100644 --- a/src/qcam/main.cpp +++ b/src/qcam/main.cpp @@ -63,7 +63,7 @@ int main(int argc, char **argv) sigaction(SIGINT, &sa, nullptr); std::unique_ptr<EventDispatcher> dispatcher(new QtEventDispatcher()); - CameraManager *cm = CameraManager::instance(); + CameraManager *cm = new CameraManager(); cm->setEventDispatcher(std::move(dispatcher)); ret = cm->start(); @@ -79,5 +79,7 @@ int main(int argc, char **argv) delete mainWindow; cm->stop(); + delete cm; + return ret; } |