mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp
changeset 20 b1fb57be53fe
parent 4 d45095c2f4f3
child 25 d881023c13eb
equal deleted inserted replaced
4:d45095c2f4f3 20:b1fb57be53fe
   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 
       
   106     iPluginHandler=CMPXCollectionPluginHandler::NewL(*this, *this);
   105     iPluginHandler=CMPXCollectionPluginHandler::NewL(*this, *this);
   107     iCache = CMPXCollectionCache::NewL(KMPXMaxCacheSizeRatio);
   106     iCache = CMPXCollectionCache::NewL(KMPXMaxCacheSizeRatio);
   108     }
   107     }
   109 
   108 
   110 // ----------------------------------------------------------------------------
   109 // ----------------------------------------------------------------------------
   111 // Destructor
   110 // Destructor
   112 // ----------------------------------------------------------------------------
   111 // ----------------------------------------------------------------------------
   113 //
   112 //
   114 EXPORT_C CMPXCollectionEngine::~CMPXCollectionEngine()
   113 EXPORT_C CMPXCollectionEngine::~CMPXCollectionEngine()
   115     {
   114     {
   116     delete iMediaForHeapKeepAlive;
       
   117     iCleanupStack.Close();
   115     iCleanupStack.Close();
   118 
   116 
   119     iContexts.ResetAndDestroy();
   117     iContexts.ResetAndDestroy();
   120     iContexts.Close();
   118     iContexts.Close();
   121     delete iPluginHandler;
   119     delete iPluginHandler;