idlehomescreen/widgetmanager/src/wminstaller.cpp
branchRCL_3
changeset 11 ff572dfe6d86
parent 5 c743ef5928ba
child 12 9674c1a575e9
--- a/idlehomescreen/widgetmanager/src/wminstaller.cpp	Fri Feb 19 22:42:37 2010 +0200
+++ b/idlehomescreen/widgetmanager/src/wminstaller.cpp	Fri Mar 12 15:41:49 2010 +0200
@@ -65,6 +65,7 @@
 //
 void CWmInstaller::ConstructL()
     {
+    iMime = KWrtMime().AllocL();
     iIdle = CIdle::NewL( CActive::EPriorityStandard );
     }
 
@@ -81,6 +82,7 @@
         iIdle->Cancel();
         }
     delete iIdle;
+    delete iMime;
     }
 
 // ---------------------------------------------------------
@@ -166,7 +168,7 @@
         optionsUninstall.iKillApp = SwiUI::EPolicyAllowed;
         SwiUI::TUninstallOptionsPckg uninstallOptionsPkg( optionsUninstall );
         iInstaller.SilentUninstall( iStatus, iUid, 
-                                uninstallOptionsPkg, KWrtMime );
+                                uninstallOptionsPkg, *iMime );
         
         aData->VisualizeUninstallL();
         SetActive();