Fixed memory leaks
authorHimanshu <himanshu.t@samsung.com>
Sun, 14 Jul 2013 10:06:40 +0000 (15:36 +0530)
committerHimanshu <himanshu.t@samsung.com>
Sun, 14 Jul 2013 10:06:40 +0000 (15:36 +0530)
Change-Id: Ic9179cf5e3079a0d3f8dec95647930fd522aca1a
Signed-off-by: Himanshu <himanshu.t@samsung.com>
src/GlAlbumListPresentationModel.cpp
src/GlFileListPresentationModel.cpp

index 63a048f..39f2125 100644 (file)
@@ -1058,6 +1058,8 @@ AlbumListPresentationModel::OnThumbnailReceivedN(IEventArg& eventArg)
                        }
                }
 
+               delete pThumbnailInfo;
+
                if (__pPresentationModelListener->GetCount() > 0)
                {
                        IEnumerator* pEnum = __pPresentationModelListener->GetEnumeratorN();
index 335d3dd..981dfe5 100644 (file)
@@ -235,7 +235,6 @@ FileListPresentationModel::DestroyInstance(void)
        AppLogDebug("ENTER");
 
        delete __pThumbnailEvent;
-       __pIconListViewCache = null;
 
        if (__pIconListViewCache != null)
        {