allocate the app instance as dymanically 28/37928/1
authorMinkyu Kang <mk7.kang@samsung.com>
Wed, 8 Apr 2015 03:04:25 +0000 (12:04 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 8 Apr 2015 03:04:25 +0000 (12:04 +0900)
Change-Id: Ied1cbc2b5c9c23d50b1a064d954ea7e4644d9f15
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
src/main.cpp

index ffaa55f..40b741c 100644 (file)
@@ -210,9 +210,10 @@ int CVideoPlayerApp::Run(int argc, char **argv)
 
 int main(int argc, char **argv)
 {
-       CVideoPlayerApp app;
+       CVideoPlayerApp *app = new CVideoPlayerApp;
 
-       app.Run(argc, argv);
+       app->Run(argc, argv);
 
+       delete app;
        return 0;
 }