summaryrefslogtreecommitdiff
path: root/src/cam/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cam/main.cpp')
-rw-r--r--src/cam/main.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index 77bb20e9..9d99f558 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -23,6 +23,7 @@ class CamApp
{
public:
CamApp();
+ ~CamApp();
static CamApp *instance();
@@ -54,6 +55,11 @@ CamApp::CamApp()
CamApp::app_ = this;
}
+CamApp::~CamApp()
+{
+ delete cm_;
+}
+
CamApp *CamApp::instance()
{
return CamApp::app_;
@@ -67,7 +73,7 @@ int CamApp::init(int argc, char **argv)
if (ret < 0)
return ret;
- cm_ = CameraManager::instance();
+ cm_ = new CameraManager();
ret = cm_->start();
if (ret) {