brandingserver/bsserver/cbsstoragemanager.cpp
changeset 19 7e0cc21eb164
parent 2 89455bbf90d8
child 21 5872ac9a5671
--- a/brandingserver/bsserver/cbsstoragemanager.cpp	Tue Feb 02 00:23:45 2010 +0200
+++ b/brandingserver/bsserver/cbsstoragemanager.cpp	Fri Apr 16 15:16:51 2010 +0300
@@ -900,9 +900,6 @@
 		CDir* directories = NULL;
 		
 		User::LeaveIfError( iFs.GetDir( driveAndPath, KEntryAttNormal, ESortByName, files, directories ) );
-
-		CleanupStack :: PushL (files);
-		CleanupStack :: PushL (directories);
 		
 		TInt count = files->Count();
 		for( TInt i = 0; i < count; i++ )
@@ -940,10 +937,7 @@
 				}
 			CleanupStack::PopAndDestroy( fullName );
 			}
-		
-		CleanupStack :: PopAndDestroy (directories);
-		CleanupStack :: PopAndDestroy (files);
-		CleanupStack :: PopAndDestroy (nameWithDrive);
+		CleanupStack::PopAndDestroy( nameWithDrive );
 		}
 	TRACE( T_LIT( "CBSStorageManager::CleanupFileL end") );
 	}