diff -r fc313e1df071 -r 6347473a7bb2 srsf/sicc/src/nsssispeechrecognitioncustomcommands.cpp --- a/srsf/sicc/src/nsssispeechrecognitioncustomcommands.cpp Wed Apr 14 15:58:44 2010 +0300 +++ b/srsf/sicc/src/nsssispeechrecognitioncustomcommands.cpp Tue May 11 16:14:47 2010 +0300 @@ -621,6 +621,7 @@ EXPORT_C void RSISpeechRecognitionCustomCommands::GetPronunciationIDArrayL( RArray& aPronunciationIDs) { + CleanupClosePushL( aPronunciationIDs ); TPckgBuf pckgSize; @@ -649,7 +650,7 @@ } CleanupStack::PopAndDestroy(2);//stream, buf - + CleanupStack::Pop(); } // ----------------------------------------------------------------------------- @@ -660,6 +661,7 @@ EXPORT_C void RSISpeechRecognitionCustomCommands::GetRuleIDArrayL( RArray& aRuleIDs) { + CleanupClosePushL( aRuleIDs ); TPckgBuf pckgSize; @@ -687,7 +689,7 @@ } CleanupStack::PopAndDestroy(2);//stream, buf - + CleanupStack::Pop(); } // ----------------------------------------------------------------------------- @@ -698,6 +700,7 @@ EXPORT_C void RSISpeechRecognitionCustomCommands::GetModelIDArrayL( RArray& aModelIDs) { + CleanupClosePushL( aModelIDs ); TPckgBuf pckgSize; @@ -725,7 +728,7 @@ } CleanupStack::PopAndDestroy( 2 );//stream, buf - + CleanupStack::Pop(); } // ----------------------------------------------------------------------------- @@ -736,7 +739,8 @@ EXPORT_C void RSISpeechRecognitionCustomCommands::GetGrammarIDArrayL( RArray& aGrammarIDs) { - + CleanupClosePushL( aGrammarIDs ); + TPckgBuf pckgSize; User::LeaveIfError(iController.CustomCommandSync(iDestinationPckg, @@ -763,7 +767,7 @@ } CleanupStack::PopAndDestroy( 2 );//stream, buf - + CleanupStack::Pop();//aGrammarIDs } // ----------------------------------------------------------------------------- @@ -774,6 +778,7 @@ EXPORT_C void RSISpeechRecognitionCustomCommands::GetLexiconIDArrayL( RArray& aLexiconIDs) { + CleanupClosePushL( aLexiconIDs ); TPckgBuf pckgSize; @@ -802,7 +807,7 @@ } CleanupStack::PopAndDestroy(2);//stream, buf - + CleanupStack::Pop(); } // ----------------------------------------------------------------------------- @@ -813,6 +818,7 @@ EXPORT_C void RSISpeechRecognitionCustomCommands::GetModelBankIDArrayL( RArray& aModelBankIDs) { + CleanupClosePushL( aModelBankIDs ); TPckgBuf pckgSize; @@ -840,7 +846,7 @@ } CleanupStack::PopAndDestroy(2);//stream, buf - + CleanupStack::Pop(); } // ----------------------------------------------------------------------------- @@ -1001,6 +1007,7 @@ TInt aNumberElements, RArray& aArray) { + CleanupClosePushL( aArray ); RDesReadStream stream(aDes); CleanupClosePushL(stream); @@ -1011,7 +1018,7 @@ } CleanupStack::PopAndDestroy();//stream - + CleanupStack::Pop(); } /************************** New SI functions start here ***********************/