mpx/collectionframework/collectionengine/src/mpxcollectionengine.cpp
changeset 25 d881023c13eb
parent 20 b1fb57be53fe
child 27 cbb1bfb7ebfb
equal deleted inserted replaced
21:a05c44bc3c61 25:d881023c13eb
   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;