Add shared ptr
[trackerpp.git] / main.cpp
index c38b655..13d3d3f 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -26,7 +26,7 @@ int main(int argc, char* argv[])
     initLogger("log4cpp.properties");
     LOG_DEBUG(TAG, "==================================");
 
-    Engine* e = Engine::create();
+    EnginePtr e = Engine::create();
     e->addObserver(new Callback());
     e->setVideoSrc(VideoSrcType::URL, "rtsp://192.168.1.75:554/stream1");
     e->start();