harvester/monitorplugins/fileplugin/src/FolderRenamer.cpp
changeset 60 79f826a55db2
parent 40 910a23996aa0
--- a/harvester/monitorplugins/fileplugin/src/FolderRenamer.cpp	Mon Sep 27 15:53:05 2010 +0300
+++ b/harvester/monitorplugins/fileplugin/src/FolderRenamer.cpp	Wed Oct 06 15:08:08 2010 +0300
@@ -206,7 +206,13 @@
 		}
 	
 	CRenameItem *renameItem = CRenameItem::NewL(aOldName,aNewName);
-	iRenamedFolders.AppendL(renameItem);
+    if( iRenamedFolders.Append( renameItem ) != KErrNone )
+         {
+         delete renameItem;
+         renameItem = NULL;
+         return;
+         }
+	
 	iIsRunning = ETrue;
 	//First item --> Kickstart