--- a/mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp Tue Jan 26 12:18:42 2010 +0200
+++ b/mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp Tue Feb 02 00:27:58 2010 +0200
@@ -102,6 +102,7 @@
//
void CMPXCollectionEngine::ConstructL()
{
+ iMediaForHeapKeepAlive = CMPXMedia::NewL(); // To avoid continuous heap
iPluginHandler=CMPXCollectionPluginHandler::NewL(*this, *this);
iCache = CMPXCollectionCache::NewL(KMPXMaxCacheSizeRatio);
}
@@ -112,6 +113,7 @@
//
EXPORT_C CMPXCollectionEngine::~CMPXCollectionEngine()
{
+ delete iMediaForHeapKeepAlive;
iCleanupStack.Close();
iContexts.ResetAndDestroy();