AudioRecorderForm::~AudioRecorderForm(void)
{
- SAFE_DELETE(__pContextMenu);
+ if (__pContextMenu)
+ {
+ __pContextMenu->RemoveAllItems();
+ delete __pContextMenu;
+ __pContextMenu = null;
+ }
SAFE_DELETE(__pPopupMessage);
SAFE_DELETE(__pPopupQuality);
SAFE_DELETE(__pPopupCodec);
return r;
CATCH:
- SAFE_DELETE(__pContextMenu);
+ if (__pContextMenu)
+ {
+ __pContextMenu->RemoveAllItems();
+ delete __pContextMenu;
+ __pContextMenu = null;
+ }
SAFE_DELETE(__pAudioRecorder);
SAFE_DELETE(__pTimer);
return r;
*pButtonCtrl = pCtrl;
return r;
CATCH:
+ __cameraError = CAMERA_ERROR_DEVICE_INTERRUPTED;
SAFE_DELETE(pCtrl);
return r;
}
*pListView = pCtrl;
return r;
CATCH:
+ __cameraError = CAMERA_ERROR_DEVICE_INTERRUPTED;
if (pCtrl != null)
{
delete pCtrl;
return pItem;
CATCH:
+ __cameraError = CAMERA_ERROR_DEVICE_INTERRUPTED;
if (pItem != null)
{
delete pItem;
return r;
CATCH:
+ __cameraError = CAMERA_ERROR_DEVICE_INTERRUPTED;
__pVideoRecorder->Cancel();
__pVideoRecorder->Close();
return r;
return;
CATCH:
+ __cameraError = CAMERA_ERROR_DEVICE_INTERRUPTED;
if (&source == __pListViewRecordingResolution)
{
__pListViewRecordingResolution->Draw();
return true;
CATCH:
+ __cameraError = CAMERA_ERROR_DEVICE_INTERRUPTED;
DeletePopup(&__pPopupVideoCodec);
AppLog("%s", GetErrorMessage(r));
return false;
return true;
CATCH:
+ __cameraError = CAMERA_ERROR_DEVICE_INTERRUPTED;
DeletePopup(&__pPopupAudioCodec);
SAFE_DELETE_ARRAYLIST(__pSettingItemArrayList);
AppLog("%s", GetErrorMessage(r));
return true;
CATCH:
+ __cameraError = CAMERA_ERROR_DEVICE_INTERRUPTED;
DeletePopup(&__pPopupFlip);
SAFE_DELETE_ARRAYLIST(__pSettingItemArrayList);
AppLog("%s", GetErrorMessage(r));
return true;
CATCH:
+ __cameraError = CAMERA_ERROR_DEVICE_INTERRUPTED;
DeletePopup(&__pPopupFileFormat);
SAFE_DELETE_ARRAYLIST(__pSettingItemArrayList);
AppLog("%s", GetErrorMessage(r));
return;
CATCH:
+ __cameraError = CAMERA_ERROR_DEVICE_INTERRUPTED;
AppLog("VideoRecorderForm::OnAdjustmentValueChanged() failed");
return;
}
void
VideoRecorderForm::ShowFooterItems(void)
{
- result r = E_SUCCESS;
+ Footer* pFooter = null;
EnableFooterItem(ID_SETTING, true);
EnableFooterItem(ID_TOGGLE_CAMERA_TYPE, true);
EnableFooterItem(ID_START, true);
- r = GetFooter()->SetBackButtonEnabled(true);
- TryReturn(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] pFooter->SetBackButtonEnabled", GetErrorMessage(r));
-
- GetFooter()->Draw();
- return;
+ pFooter = GetFooter();
+ if (pFooter != null)
+ {
+ pFooter->SetBackButtonEnabled(true);
+ pFooter->Draw();
+ }
}