diff -r e257e2b6459d -r 4aca42fa4eb1 mmappfw_plat/harvester_collection_mediator_api/tsrc/HarvesterCollectionMediatorTest/src/HarvesterCollectionMediatorTestBlocks.cpp --- a/mmappfw_plat/harvester_collection_mediator_api/tsrc/HarvesterCollectionMediatorTest/src/HarvesterCollectionMediatorTestBlocks.cpp Wed Jun 09 10:13:45 2010 +0300 +++ b/mmappfw_plat/harvester_collection_mediator_api/tsrc/HarvesterCollectionMediatorTest/src/HarvesterCollectionMediatorTestBlocks.cpp Mon Jun 21 16:13:35 2010 +0300 @@ -225,6 +225,11 @@ TInt err = KErrNone; delete iMediator; iMediator = NULL; + if(iCollectionUtility) + { + iCollectionUtility->Close(); + iCollectionUtility = NULL; + } iLog->Log(_L("CHarvesterCollectionMediatorTest::CMPXCollectionMediatorDestruction testing ~CMPXCollectionMediator end err=%d"), err); return err; } @@ -253,7 +258,6 @@ { iLog->Log( _L("CHarvesterCollectionMediatorTest::CMPXCollectionMediatorNewLWithMPXCollection testing CMPXCollectionMediator::NewL() End") ); } - iCollectionUtility->Close(); return err; } @@ -271,6 +275,7 @@ iMediator = CMPXCollectionMediator::NewLC( iCollectionUtility->Collection() ); CleanupStack::Pop( iMediator ); iCollectionUtility->Close(); + iCollectionUtility = NULL; iLog->Log( _L("CHarvesterCollectionMediatorTest::CMPXCollectionMediatorNewLC testing CMPXCollectionMediator::NewLC() End") ); return err; }