applicationmanagement/server/src/ApplicationManagementServer.cpp
changeset 56 a9afc3a8dbfa
parent 52 6e38e48ee756
child 67 fdbfe0a95492
--- a/applicationmanagement/server/src/ApplicationManagementServer.cpp	Fri Aug 06 18:56:37 2010 +0530
+++ b/applicationmanagement/server/src/ApplicationManagementServer.cpp	Thu Aug 19 17:35:23 2010 +0530
@@ -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",