mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp
changeset 4 d45095c2f4f3
parent 0 a2952bb97e68
child 19 51035f0751c2
child 20 b1fb57be53fe
--- 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();