, __pSharePopup(null)
, __pThreeButtonPopup(null)
, __pTwoButtonPopup(null)
+ , __pGoToDatePopup(null)
{
}
__pTwoButtonPopup = new (std::nothrow) TwoButtonPopup();
__pTwoButtonPopup->Initialize();
+ __pGoToDatePopup = new (std::nothrow) GoToDatePopup();
+ __pGoToDatePopup->Initialize();
+
return E_SUCCESS;
}
delete __pContextItem;
delete __pContextItemNoEdit;
delete __pDateFormatter;
- delete __pSharePopup;
- delete __pThreeButtonPopup;
- delete __pTwoButtonPopup;
+
+ if (__pSharePopup)
+ {
+ __pSharePopup->Destroy();
+ }
+ if (__pThreeButtonPopup)
+ {
+ __pThreeButtonPopup->Destroy();
+ }
+ if (__pTwoButtonPopup)
+ {
+ __pTwoButtonPopup->Destroy();
+ }
+ if (__pGoToDatePopup)
+ {
+ __pGoToDatePopup->Destroy();
+ }
return E_SUCCESS;
}
}
break;
case IDA_SUB_MENU_GO_TO_DATE:
- GoToDatePopup::RequestGoToDate(__pPm->GetCurrentDate(), this);
+ __pGoToDatePopup->RequestPopup(__pPm->GetCurrentDate(), this);
break;
case IDA_SUB_MENU_DELETE:
SceneManager::GetInstance()->GoForward(ForwardSceneTransition(IDSCN_EVENT_DELETER,