diff -r 3d09643def13 -r 6bfad47013df qthighway/xqservice/src/xqaiwutils.cpp --- a/qthighway/xqservice/src/xqaiwutils.cpp Fri Sep 17 08:34:25 2010 +0300 +++ b/qthighway/xqservice/src/xqaiwutils.cpp Mon Oct 04 01:32:41 2010 +0300 @@ -395,11 +395,11 @@ CApaCommandLine* cmdLine = CApaCommandLine::NewLC(); cmdLine->SetExecutableNameL( aInfo.iFullName ); RProcess newApp; + CleanupClosePushL(newApp); User::LeaveIfError(newApp.Create(aInfo.iFullName, cmdArgs)); cmdLine->SetProcessEnvironmentL(newApp); newApp.Resume(); - newApp.Close(); // Close the handle (not the app) - CleanupStack::PopAndDestroy(2); // cmdLine, wsSession + CleanupStack::PopAndDestroy(3); // newApp, cmdLine, wsSession } XQSERVICE_DEBUG_PRINT("application started");