diff -r 81f8547efd4f -r e8e3147d53eb predictivesearch/PcsAlgorithm/Algorithm1/src/CPsDataPluginInterface.cpp --- a/predictivesearch/PcsAlgorithm/Algorithm1/src/CPsDataPluginInterface.cpp Fri Mar 12 15:41:25 2010 +0200 +++ b/predictivesearch/PcsAlgorithm/Algorithm1/src/CPsDataPluginInterface.cpp Mon Mar 15 12:39:26 2010 +0200 @@ -221,19 +221,20 @@ PRINT ( _L("Enter CPsDataPluginInterface::GetAllSupportedDataStoresL") ); for ( TInt idx = 0; idx < iPsDataPluginInstances.Count(); idx++ ) - { - RPointerArray aDataStores; - iPsDataPluginInstances[idx]->GetSupportedDataStoresL(aDataStores); + { + RPointerArray dataStores; + CleanupClosePushL( dataStores ); + iPsDataPluginInstances[idx]->GetSupportedDataStoresL(dataStores); - for( TInt i(0); iCompare(aUri) == 0) + for ( TInt i(0); iCompare(aUri) == 0) { iPsDataPluginInstances[idx]->GetSupportedDataFieldsL(aDataFields); break; - } + } } - aDataStores.Reset(); + CleanupStack::PopAndDestroy( &dataStores ); // Close } PRINT ( _L("End CPsDataPluginInterface::GetAllSupportedDataStoresL") );