mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp
changeset 4 d45095c2f4f3
parent 0 a2952bb97e68
child 19 51035f0751c2
child 20 b1fb57be53fe
equal deleted inserted replaced
3:b425f12f328d 4:d45095c2f4f3
   100 // 2nd phase constructor.
   100 // 2nd phase constructor.
   101 // ----------------------------------------------------------------------------
   101 // ----------------------------------------------------------------------------
   102 //
   102 //
   103 void CMPXCollectionEngine::ConstructL()
   103 void CMPXCollectionEngine::ConstructL()
   104     {
   104     {
       
   105     iMediaForHeapKeepAlive = CMPXMedia::NewL(); // To avoid continuous heap 
   105     iPluginHandler=CMPXCollectionPluginHandler::NewL(*this, *this);
   106     iPluginHandler=CMPXCollectionPluginHandler::NewL(*this, *this);
   106     iCache = CMPXCollectionCache::NewL(KMPXMaxCacheSizeRatio);
   107     iCache = CMPXCollectionCache::NewL(KMPXMaxCacheSizeRatio);
   107     }
   108     }
   108 
   109 
   109 // ----------------------------------------------------------------------------
   110 // ----------------------------------------------------------------------------
   110 // Destructor
   111 // Destructor
   111 // ----------------------------------------------------------------------------
   112 // ----------------------------------------------------------------------------
   112 //
   113 //
   113 EXPORT_C CMPXCollectionEngine::~CMPXCollectionEngine()
   114 EXPORT_C CMPXCollectionEngine::~CMPXCollectionEngine()
   114     {
   115     {
       
   116     delete iMediaForHeapKeepAlive;
   115     iCleanupStack.Close();
   117     iCleanupStack.Close();
   116 
   118 
   117     iContexts.ResetAndDestroy();
   119     iContexts.ResetAndDestroy();
   118     iContexts.Close();
   120     iContexts.Close();
   119     delete iPluginHandler;
   121     delete iPluginHandler;