{
if (__pHistoryPresentationModel)
{
+ __pHistoryPresentationModel->UnInitialize();
delete __pHistoryPresentationModel;
__pHistoryPresentationModel = null;
}
// added because conversion may fail
if(GetLastResult() != E_SUCCESS)
return;
+ delete pFavBuffer;
history.SetFavIconBitmap(favIconImage);
delete pImage;
}
}
+ if (pTodaysList)
+ {
+ pTodaysList->RemoveAll();
+ delete pTodaysList;
+ }
+
pMostVisitedSites = new(std::nothrow) ArrayList();
pMostVisitedSites->Construct();
String historyTitle = history.GetHistoryTitle();
{
pFavIconBuffer = new ByteBuffer();
r = PresentationModelBase::GetColumn(columnCount, *pFavIconBuffer);
- if (!IsFailed(r))
+ if (!IsFailed(r) && pFavIconBuffer->GetCapacity() > 0)
{
pHistory->SetFavIconBuffer(*pFavIconBuffer);
}
query.Append(historyTable);
query.Append(L".TITLE LIKE '%");
query.Append(text);
- query.Append("%')");
+ query.Append("%' ESCAPE '/')");
query.Append(" OR ");
query.Append(L"(");
query.Append(historyTable);
query.Append(L".ADDRESS LIKE '%");
query.Append(text);
- query.Append("%')");
+ query.Append("%' ESCAPE '/')");
query.Append(" ORDER BY VISITDATE DESC");
query.Append(historyTable);
query.Append(L".TITLE LIKE '%");
query.Append(text);
- query.Append("%')");
+ query.Append("%'ESCAPE '/')");
query.Append(" OR ");
query.Append(L"(");
query.Append(historyTable);
query.Append(L".ADDRESS LIKE '%");
query.Append(text);
- query.Append("%')");
+ query.Append("%' ESCAPE '/')");
query.Append(" ORDER BY VISITDATE DESC");
r = HistoryPresentationModel::ExecuteQuery(query, count);