applicationmanagement/server/src/ApplicationManagementServer.cpp
changeset 59 b7be70e619ea
parent 53 1273bf2c520c
child 67 fdbfe0a95492
--- a/applicationmanagement/server/src/ApplicationManagementServer.cpp	Wed Aug 18 09:39:31 2010 +0300
+++ b/applicationmanagement/server/src/ApplicationManagementServer.cpp	Thu Sep 02 20:16:47 2010 +0300
@@ -1547,6 +1547,7 @@
     if (err != KErrNone)
         {
         aCompo.SetStatusNode(EDelivered_InstalledFailedWithData);
+        delete wait;
         User::Leave(err);
         }
     wait->StartWait();
@@ -1554,7 +1555,7 @@
         m_Dlg->closeAMWaitDialog();
     m_Window->lower();
     TRequestStatus s1 = wait->iStatus;
-    delete wait;
+    
     RDEBUG_2( "ApplicationManagementSession: JavaInstallL 1 failed with code %d",
                 s1.Int() );
 
@@ -1648,6 +1649,7 @@
     if (err != KErrNone)
         {
         aCompo.SetStatusNode(EDelivered_InstalledFailedWithData);
+        delete wait;
         User::Leave(err);
         }
     RDEBUG_2("ApplicationManagementSession: SisInstallL failed with code before startwait %d",