Fix crash issue 96/128696/1
authorHeeyong Song <heeyong.song@samsung.com>
Thu, 11 May 2017 05:38:18 +0000 (14:38 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Thu, 11 May 2017 05:38:18 +0000 (14:38 +0900)
- Delete Clipboard::Impl
- Change delete order: Adaptor should be deleted before Framework

Change-Id: Id2e793e7206f66ce397a1b4ed1cde970866e4a2b

adaptors/common/application-impl.cpp
adaptors/ecore/wayland/clipboard-impl-ecore-wl.cpp
adaptors/wayland/clipboard/clipboard-impl-wl.cpp

index 8dd7597..931ba12 100644 (file)
@@ -102,10 +102,10 @@ Application::~Application()
 {
   mSingletonService.UnregisterAll();
 
-  delete mFramework;
-  delete mCommandLineOptions;
-  delete mAdaptor;
   mWindow.Reset();
+  delete mAdaptor;
+  delete mCommandLineOptions;
+  delete mFramework;
 }
 
 void Application::CreateWindow()
index 19e040b..b19af9b 100644 (file)
@@ -218,6 +218,7 @@ Clipboard::Clipboard(Impl* impl)
 
 Clipboard::~Clipboard()
 {
+  delete mImpl;
 }
 
 Dali::Clipboard Clipboard::Get()
index 611ddf3..63588a4 100644 (file)
@@ -55,6 +55,7 @@ Clipboard::Clipboard(Impl* impl)
 
 Clipboard::~Clipboard()
 {
+  delete mImpl;
 }
 
 Dali::Clipboard Clipboard::Get()