Clear DataControl response listener when UI Form is destroyed
authorHyunbin Lee <hyunbin.lee@samsung.com>
Fri, 12 Apr 2013 00:59:50 +0000 (09:59 +0900)
committerHyunbin Lee <hyunbin.lee@samsung.com>
Fri, 12 Apr 2013 01:00:08 +0000 (10:00 +0900)
Change-Id: Ib73d0ef906ebb36279c657330c63c1e480e2766d
Signed-off-by: Hyunbin Lee <hyunbin.lee@samsung.com>
project/src/MapDataControlForm.cpp
project/src/SqlDataControlForm.cpp

index adaa09b..e3da1ad 100644 (file)
@@ -104,6 +104,7 @@ void
 MapDataControlForm::OnFormBackRequested(Form& source)
 {
        AppLog("OnFormBackRequested.");
+       __pMapDataControl->SetMapDataControlResponseListener(null);
        SceneManager* pSceneManager = SceneManager::GetInstance();
        pSceneManager->GoBackward(BackwardSceneTransition());
 }
index bce4265..0ecf54c 100644 (file)
@@ -106,6 +106,7 @@ void
 SqlDataControlForm::OnFormBackRequested(Form& source)
 {
        AppLog("OnFormBackRequested.");
+       __pSqlDataControl->SetSqlDataControlResponseListener(null);
        SceneManager* pSceneManager = SceneManager::GetInstance();
        pSceneManager->GoBackward(BackwardSceneTransition());
 }