mmappfw_plat/harvester_collection_mediator_api/tsrc/HarvesterCollectionMediatorTest/src/HarvesterCollectionMediatorTestBlocks.cpp
--- a/mmappfw_plat/harvester_collection_mediator_api/tsrc/HarvesterCollectionMediatorTest/src/HarvesterCollectionMediatorTestBlocks.cpp Thu Jun 17 11:11:56 2010 -0500
+++ b/mmappfw_plat/harvester_collection_mediator_api/tsrc/HarvesterCollectionMediatorTest/src/HarvesterCollectionMediatorTestBlocks.cpp Fri Jun 25 17:07:52 2010 -0500
@@ -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;
}