if (pEditAlbumBitmap != NULL)
{
pEditAlbumBitmap->Construct(*pEditAlbumCanvas, Rectangle(0, 0, canvasWidth, canvasHeight));
- delete pEditAlbumCanvas;
+
}
+ delete pEditAlbumCanvas;
albumName = pAlbumInfo->GetAlbumName();
String reservedCameraName = ResourceManager::GetString(L"IDS_MEDIABR_BODY_CAMERA_ROLL_ABB");
pAllAlbumInfo->AppendDirectory(*pDirPath);
pAllAlbumInfo->AppendContentIdList(*pContentIdList);
+
+ pContentIdList->RemoveAll(true);
delete pContentIdList;
}
}
pAllAlbumInfo->AppendDirectory(*pDirPath);
pAllAlbumInfo->AppendContentIdList(*pContentIdList);
+
+ pContentIdList->RemoveAll(true);
delete pContentIdList;
}
}
pAllAlbumInfo->AppendDirectory(*pDirPath);
pAllAlbumInfo->AppendContentIdList(*pContentIdList);
+
+ pSubDirList->RemoveAll(true);
delete pSubDirList;
}
- delete pContentIdList;
+
+ if ( pContentIdList != NULL)
+ {
+ pContentIdList->RemoveAll(true);
+ delete pContentIdList;
+ }
}
if (pAlbumInfo != null && pAlbumInfo->GetContentIdCount() > 0)
{
if (pContentDirectoryPathList != null)
{
+ pContentDirectoryPathList->RemoveAll(true);
delete pContentDirectoryPathList;
}
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return;
CATCH:
+if (pContentDirectoryPathList != null)
+{
+ pContentDirectoryPathList->RemoveAll(true);
delete pContentDirectoryPathList;
+}
delete pAllAlbumInfo;
delete pCameraAlbumInfo;
delete pDownloadAlbumInfo;
}
delete pEnum;
}
- delete pContentInfoList;
+
+ if ( pContentInfoList != NULL)
+ {
+ pContentInfoList->RemoveAll(true);
+ delete pContentInfoList;
+ }
+
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
return pContentIdList;
AppLogDebug("ENTER");
if (__pContentDirectoryList != null)
{
+ __pContentDirectoryList->RemoveAll(true);
delete __pContentDirectoryList;
+ __pContentDirectoryList = null;
+ }
+
+ if (__pPopUp != null)
+ {
+ delete __pPopUp;
+ __pPopUp = null;
}
if (__pContentDirectoryNameList != null)
if (__pContentDirectoryList != null)
{
+ __pContentDirectoryList->RemoveAll(true);
delete __pContentDirectoryList;
}
__pContentDirectoryList = contentDirectory.GetContentDirectoryPathListN(SORT_ORDER_NONE);
FileListForm::~FileListForm(void)
{
AppLogDebug("ENTER");
+
+ if ( __pPopUp != NULL )
+ {
+ delete __pPopUp;
+ __pPopUp = NULL;
+ }
+
+
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
}
pFooter->AddItem(itemCamera);
+ delete pBitmapCamera;
if (__pOptionMenu != null)
{
if (__pIconListViewCache != null)
{
+ __pIconListViewCache->RemoveAll(true);
delete __pIconListViewCache;
+ __pIconListViewCache = null;
}
__pIconListViewCache = new (std::nothrow) ArrayList(SingleObjectDeleter);
__pIconListViewCache->Construct(SIZE_ICON_LIST_CACHE);
if (__pIconListViewCache != null)
{
+ __pIconListViewCache->RemoveAll(true);
delete __pIconListViewCache;
__pIconListViewCache = null;
}
}
}
+ delete pEnum;
+
if (isMatch == false)
{
if (SIZE_ICON_LIST_CACHE <= __pIconListViewCache->GetCount())