TakephotosView::~TakephotosView()
{
// DeInit();
- creamAnimator->Stop();
- smileAnimator->Stop();
- FreeImageInfoArray(creamimageInfos, creambasePath.c_str(), 50);
- FreeImageInfoArray(smileimageInfos, smilebasePath.c_str(), 50);
- ReleaseImageAnimatorSource(creamimageAnimatorInfo, 50);
+ PopupPhoto staust = TakephotosModel::GetInstance()->GetPopStaust();
+ if (staust == PopupPhoto::CreamPopup)
+ {
+ creamAnimator->Stop();
+ FreeImageInfoArray(creamimageInfos, creambasePath.c_str(), 50);
+ }
+ else
+ {
+ smileAnimator->Stop();
+ FreeImageInfoArray(smileimageInfos, smilebasePath.c_str(), 50);
+ }
ReleaseImageAnimatorSource(smileimageAnimatorInfo, 50);
-
+ ReleaseImageAnimatorSource(creamimageAnimatorInfo, 50);
UIViewGroup *tmpGroup = dynamic_cast<UIViewGroup *>(container_);
UIViewGroup::RemoveAndDeleteAllRecursively(tmpGroup);