{
ASSERT(m);
- CBaseView::Destroy();
-
CMediaContentDbUpdateListener::Destroy();
CUsbConnectionListener::Destroy();
m->pMediadata->DestroyMediaList();
m->pLayoutMgr->RemoveLayout(m->pAllLayout);
+ m->pAllLayout->Destroy();
+ delete m->pAllLayout;
+
m->pLayoutMgr->RemoveLayout(m->pEventLayout);
+ m->pEventLayout->Destroy();
+ delete m->pEventLayout;
+
m->pLayoutMgr->RemoveLayout(m->pFolderLayout);
+ m->pFolderLayout->Destroy();
+ delete m->pFolderLayout;
+
+ CBaseView::Destroy();
+ m->pLayoutMgr->Destroy();
+ delete m->pLayoutMgr;
if (m->arglist) {
free(m->arglist->id);
evas_object_del(m->base);
- free(m);
+ delete m;
m = NULL;
}