From: Kim Tae Soo Date: Mon, 2 Mar 2015 23:21:31 +0000 (+0900) Subject: Fix memory leak to add RemoveView for each views in CApp::OnTerminate funcion. X-Git-Tag: accepted/tizen/tv/20150303.010800^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8601fed879cdbe0e2b00a5a1c9bea14fc9124b7f;p=profile%2Ftv%2Fapps%2Fnative%2Fmusicplayer.git Fix memory leak to add RemoveView for each views in CApp::OnTerminate funcion. Change-Id: I477d16386c589e8326c37d9c5acb47872c71f1a3 Signed-off-by: Kim Tae Soo --- diff --git a/src/main.cpp b/src/main.cpp index 9a1a145..918efb4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -111,6 +111,10 @@ public: virtual void OnTerminate(void) { + CViewMgr::GetInstance()->RemoveView(m_cBaseView); + CViewMgr::GetInstance()->RemoveView(m_cPlaybackView); + CViewMgr::GetInstance()->RemoveView(m_cContextView); + CSortMgr::Finalize(); CViewMgr::Finalize(); CMusicController::Finalize();