mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp
changeset 25 d881023c13eb
parent 20 b1fb57be53fe
child 27 cbb1bfb7ebfb
--- a/mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp	Fri Apr 16 15:28:14 2010 +0300
+++ b/mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp	Mon May 03 12:58:40 2010 +0300
@@ -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();