delete dangling LiveboxPopupContext instance for exceptional case
authorjungmin76.park <jungmin76.park@samsung.com>
Thu, 14 Mar 2013 06:24:23 +0000 (15:24 +0900)
committerjungmin76.park <jungmin76.park@samsung.com>
Thu, 14 Mar 2013 06:24:23 +0000 (15:24 +0900)
Change-Id: Iad8f1604730dea55bf928dba171c14d795e46ce3
Signed-off-by: jungmin76.park <jungmin76.park@samsung.com>
src/FShell_LiveboxContext.cpp

index 84bfb0a..9f2dd14 100644 (file)
@@ -84,6 +84,13 @@ _LiveboxContext::~_LiveboxContext()
        SysLog(NID_APP, "appId(%ls), instanceId(%ls), width(%d), height(%d), priority(%d)", __providerId.GetPointer(), __instanceId.GetPointer(), __width, __height, __priority);
        __lifeDurationTimer.Cancel();
        __UpdateTimer.Cancel();
+
+       if (__pLiveboxPopup)
+       {
+               SysLog(NID_APP, "Destroying dangling LiveboxPopup instance..");
+               __pLiveboxPopup->OnPopupDestoyed();
+               delete __pLiveboxPopup;
+       }
 }
 
 _LiveboxPopupContext*