qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_apasymbianserver.cpp
changeset 27 6bfad47013df
parent 26 3d09643def13
--- a/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_apasymbianserver.cpp	Fri Sep 17 08:34:25 2010 +0300
+++ b/qthighway/xqserviceipc/xqserviceipcserver/xqserviceipcserver_apasymbianserver.cpp	Mon Oct 04 01:32:41 2010 +0300
@@ -129,6 +129,7 @@
 	    delete stateNotifyKey;
 	    
 	    RProcess currentProcess;
+	    CleanupClosePushL(currentProcess);
 	    const TSecureId secureId = currentProcess.SecureId();
 	    
 	    stateNotifyKey = new XQPublishAndSubscribeSettingsKey(secureId.iId, id);
@@ -139,6 +140,7 @@
 	    } else {
 			settingsManager.writeItemValue(*stateNotifyKey, static_cast<int>(XQApplicationManager::ServiceStarted));
 		}
+	    CleanupStack::PopAndDestroy(&currentProcess);
 	}
     // Complete the server rendezvous that th client started
     XQSERVICE_DEBUG_PRINT("CApaSymbianServer::Rendezvouz");