--- a/voiceui/voiceuivoicerecognition/src/vuicprecheckstate.cpp Wed Apr 14 15:58:44 2010 +0300
+++ b/voiceui/voiceuivoicerecognition/src/vuicprecheckstate.cpp Tue May 11 16:14:47 2010 +0300
@@ -214,12 +214,13 @@
TBool islock = EFalse;
RWsSession &ws = CCoeEnv::Static()->WsSession();
TInt wgId = ws.GetFocusWindowGroup();
- CApaWindowGroupName *WindowsGroupName = CApaWindowGroupName::NewL( ws, wgId );
+ CApaWindowGroupName *WindowsGroupName = CApaWindowGroupName::NewLC( ws, wgId );
if ( ( KAknnfysrvUid == WindowsGroupName->AppUid() ) &&
( ws.GetWindowGroupOrdinalPriority( wgId ) >= ECoeWinPriorityAlwaysAtFront ) )
{
islock = ETrue;
}
+ CleanupStack::PopAndDestroy( WindowsGroupName );
return islock;
}