diff -r 82c0024438c8 -r ab88d4a85041 harvester/common/src/harvesterpluginfactory.cpp --- a/harvester/common/src/harvesterpluginfactory.cpp Wed Apr 14 16:24:03 2010 +0300 +++ b/harvester/common/src/harvesterpluginfactory.cpp Tue Apr 27 17:05:23 2010 +0300 @@ -28,6 +28,9 @@ #include "mdsutils.h" #include "harvesterlog.h" +// for CleanupResetAndDestroyPushL +#include + const TInt KCacheItemCountForEventCaching = 1; // --------------------------------------------------------------------------- @@ -36,7 +39,7 @@ // CHarvesterPluginFactory::CHarvesterPluginFactory() : iBlacklist( NULL ), - iHarvesting( NULL ), + iHarvesting( EFalse ), iHarvesterEventManager( NULL ) { WRITELOG( "CHarvesterPluginFactory::CHarvesterPluginFactory()" ); @@ -338,6 +341,8 @@ void CHarvesterPluginFactory::GetSupportedPluginsL( RPointerArray& aSupportedPlugins, const TDesC& aExt ) { + CleanupResetAndDestroyPushL( aSupportedPlugins ); + const TInt pluginInfoCount = iHarvesterPluginInfoArray.Count(); TInt extCount = 0; for ( TInt i = pluginInfoCount; --i >= 0; ) @@ -358,6 +363,8 @@ } } } + + CleanupStack::Pop( &aSupportedPlugins ); } EXPORT_C TBool CHarvesterPluginFactory::IsSupportedFileExtension( const TDesC& aFileName )