Change-Id: I330ec103efb082487f7a8413c200f09045814c02
BookmarkData::~BookmarkData(void)
{
BookmarkData::~BookmarkData(void)
{
+ if (__pFavIconData)
+ {
+ delete __pFavIconData;
+ }
__previousSceneId = previousSceneId;
}*/
__previousSceneId = previousSceneId;
}*/
+ if (pList)
+ {
+ delete pList;
+ pList = null;
+ }
+
if (__pListview != null)
{
__pListview->UpdateList();
if (__pListview != null)
{
__pListview->UpdateList();
{
if (__pBookmarkPresentationModel)
{
{
if (__pBookmarkPresentationModel)
{
+ __pBookmarkPresentationModel->UnInitialize();
delete __pBookmarkPresentationModel;
__pBookmarkPresentationModel = null;
}
delete __pBookmarkPresentationModel;
__pBookmarkPresentationModel = null;
}
void
CreateBookmarkFolderForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
{
void
CreateBookmarkFolderForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
{
- if (__pBookmark)
- {
- delete __pBookmark;
- __pBookmark= null;
- }
result
EditBookmarkListForm::OnInitializing(void)
{
result
EditBookmarkListForm::OnInitializing(void)
{
__pSelectedList->Add(pBookmarkId);
}
__pSelectedList->Add(pBookmarkId);
}
int itemCount = __pListview->GetItemCount();
for (int count = 0;count < itemCount ; count++)
{
int itemCount = __pListview->GetItemCount();
for (int count = 0;count < itemCount ; count++)
{
{
__pListview->SetItemChecked(index,false);
}
{
__pListview->SetItemChecked(index,false);
}
+ if (pBookmarkId)
+ {
+ delete pBookmarkId;
+ pBookmarkId = null;
+ }
/*labelString.Append(CommonUtil::GetString(L"IDS_BR_BODY_PD_ITEM_SELECTED"));
labelString.Append(L"\x200E"); // LEFT-TO-RIGHT MARK
labelString.Append(L"(");
/*labelString.Append(CommonUtil::GetString(L"IDS_BR_BODY_PD_ITEM_SELECTED"));
labelString.Append(L"\x200E"); // LEFT-TO-RIGHT MARK
labelString.Append(L"(");
return;
}
std::atexit(DestroyInstance);
return;
}
std::atexit(DestroyInstance);
}
void FaviconManager::DestroyInstance(void)
{
if (__pFaviconManagerInstance)
{
}
void FaviconManager::DestroyInstance(void)
{
if (__pFaviconManagerInstance)
{
+ __pFaviconManagerInstance->UnInitialize();
delete __pFaviconManagerInstance;
__pFaviconManagerInstance = null;
}
delete __pFaviconManagerInstance;
__pFaviconManagerInstance = null;
}
History::~History(void)
{
History::~History(void)
{
- if(__pThumbnail != null)
+ if (__pThumbnail != null)
{
delete __pThumbnail; //TODO To get this reviewed
}
{
delete __pThumbnail; //TODO To get this reviewed
}
+ if (__pFavIconData)
+ {
+ delete __pFavIconData;
+ }
AppLog("History::~History()");
}
AppLog("History::~History()");
}
{
if (__pHistoryPresentationModel)
{
{
if (__pHistoryPresentationModel)
{
+ __pHistoryPresentationModel->UnInitialize();
delete __pHistoryPresentationModel;
__pHistoryPresentationModel = null;
}
delete __pHistoryPresentationModel;
__pHistoryPresentationModel = null;
}
+ if (pTodaysList)
+ {
+ pTodaysList->RemoveAll();
+ delete pTodaysList;
+ }
+
pMostVisitedSites = new(std::nothrow) ArrayList();
pMostVisitedSites->Construct();
String historyTitle = history.GetHistoryTitle();
pMostVisitedSites = new(std::nothrow) ArrayList();
pMostVisitedSites->Construct();
String historyTitle = history.GetHistoryTitle();
result
HistoryPresentationModel::GetMostVisitedSites(ArrayList& pHistoryList)
{
result
HistoryPresentationModel::GetMostVisitedSites(ArrayList& pHistoryList)
{
int count = -1;
String query;
String historyTable(HISTORY_DATA_TABLE);
int count = -1;
String query;
String historyTable(HISTORY_DATA_TABLE);
__pFindWordEditField->AddTextEventListener(*this);
__pFindWordEditField->AddKeypadEventListener(*this);
__pFindWordEditField->SetOverlayKeypadCommandButtonVisible(false);
__pFindWordEditField->AddTextEventListener(*this);
__pFindWordEditField->AddKeypadEventListener(*this);
__pFindWordEditField->SetOverlayKeypadCommandButtonVisible(false);
+ __pFindWordEditField->SetColor(EDIT_STATUS_HIGHLIGHTED, Color(0x00, 0x00, 0x00, 0x00));
__pFindWordEditFieldRightToLeft = static_cast<EditField*>(__pFindWordControl->GetControl(L"IDC_FIND_WORD_EDITFIELD2", true));
if (__pFindWordEditFieldRightToLeft == null)
__pFindWordEditFieldRightToLeft = static_cast<EditField*>(__pFindWordControl->GetControl(L"IDC_FIND_WORD_EDITFIELD2", true));
if (__pFindWordEditFieldRightToLeft == null)
__pFindWordEditFieldRightToLeft->AddTextEventListener(*this);
__pFindWordEditFieldRightToLeft->AddKeypadEventListener(*this);
__pFindWordEditFieldRightToLeft->SetOverlayKeypadCommandButtonVisible(false);
__pFindWordEditFieldRightToLeft->AddTextEventListener(*this);
__pFindWordEditFieldRightToLeft->AddKeypadEventListener(*this);
__pFindWordEditFieldRightToLeft->SetOverlayKeypadCommandButtonVisible(false);
+ __pFindWordEditFieldRightToLeft->SetColor(EDIT_STATUS_HIGHLIGHTED, Color(0x00, 0x00, 0x00, 0x00));
__pWebViewer->RemoveTouchEventListener(*this);
}
__pWebViewer->RemoveTouchEventListener(*this);
}
{
delete __pItemContext;
}
{
delete __pItemContext;
}
- if(__pItemContextLandscape)
+ if (__pItemContextLandscape)
{
delete __pItemContextLandscape;
}
{
delete __pItemContextLandscape;
}
+ if (__pSaveImage)
+ {
+ delete __pSaveImage;
+ }
+ if (__pMostVisitedSites)
+ {
+ __pMostVisitedSites->RemoveAll(true);
+ delete __pMostVisitedSites;
+ }
MultipleWindowPresentationModel::GetInstance()->GetValue(SELECTED_SCENE_ID, &pValue);
pSelectedScene = (String*) pValue;
MultipleWindowPresentationModel::GetInstance()->GetValue(SELECTED_SCENE_ID, &pValue);
pSelectedScene = (String*) pValue;
- if (pSelectedScene != null)
+ // removed because some times crash is happening here
+ /*if (pSelectedScene != null)
MultipleWindowPresentationModel::GetInstance()->SetValue(SELECTED_SCENE_ID, null);
String* selectedSceneID = new(std::nothrow) String(currentSceneId);
AppLogDebug("current scene id is %ls", currentSceneId.GetPointer());
MultipleWindowPresentationModel::GetInstance()->SetValue(SELECTED_SCENE_ID, null);
String* selectedSceneID = new(std::nothrow) String(currentSceneId);
AppLogDebug("current scene id is %ls", currentSceneId.GetPointer());
__pWindowInfo = dynamic_cast< WindowInfo* >(pArgs->GetAt(0));
}
__pWindowInfo = dynamic_cast< WindowInfo* >(pArgs->GetAt(0));
}
+ if (selectedSceneID)
+ {
+ delete selectedSceneID;
+ selectedSceneID = null;
+ }
+
InitFooter();
InitAddressbar();
InitFooter();
InitAddressbar();
WindowInfo::pFormCanvasBitmap = new(std::nothrow) Bitmap();
WindowInfo::pFormCanvasBitmap->Construct(*pCanvas,Rectangle(0,0,GetClientAreaBounds().width,GetClientAreaBounds().height - __pFooterPanel->GetHeight()));
delete pCanvas;
WindowInfo::pFormCanvasBitmap = new(std::nothrow) Bitmap();
WindowInfo::pFormCanvasBitmap->Construct(*pCanvas,Rectangle(0,0,GetClientAreaBounds().width,GetClientAreaBounds().height - __pFooterPanel->GetHeight()));
delete pCanvas;
{
AppLog("PresentationModelBase::ExecuteBookmarkQuery success database");
}
{
AppLog("PresentationModelBase::ExecuteBookmarkQuery success database");
}
}
else if (__isBeginTransaction == false && (queryType == L"UPDATE" || queryType == L"DELETE"))
{
}
else if (__isBeginTransaction == false && (queryType == L"UPDATE" || queryType == L"DELETE"))
{