--- a/harvester/monitorplugins/mmcplugin/src/mmcfilelist.cpp Wed Apr 14 16:24:03 2010 +0300
+++ b/harvester/monitorplugins/mmcplugin/src/mmcfilelist.cpp Tue Apr 27 17:05:23 2010 +0300
@@ -31,6 +31,9 @@
#include <harvesterdata.h>
#include "harvesterpluginfactory.h"
+// for CleanupResetAndDestroyPushL
+#include <mmf/common/mmfcontrollerpluginresolver.h>
+
_LIT( KBackslash, "\\");
const TInt KEntryBufferSize = 100;
@@ -87,6 +90,9 @@
RPointerArray<CPlaceholderData>& aEntryArray )
{
WRITELOG( "CMmcFileList::BuildFileListL - start" );
+
+ CleanupResetAndDestroyPushL( aEntryArray );
+
CDesCArrayFlat* path = new(ELeave) CDesCArrayFlat( 10 );
CleanupStack::PushL( path );
TFileName firstPath;
@@ -180,6 +186,8 @@
CleanupStack::PopAndDestroy( path );
+ CleanupStack::Pop( &aEntryArray );
+
WRITELOG( "CMmcFileList::BuildFileListL - end" );
}