--- a/srsf/speechsynthesis/client/src/speechsynthesis.cpp Wed Apr 14 15:58:44 2010 +0300
+++ b/srsf/speechsynthesis/client/src/speechsynthesis.cpp Tue May 11 16:14:47 2010 +0300
@@ -257,6 +257,7 @@
//
EXPORT_C void RSpeechSynthesis::GetLanguagesL( RArray<TLanguage>& aLanguages )
{
+ CleanupClosePushL( aLanguages );
if ( Handle() == 0 )
{
User::Leave( KErrBadHandle );
@@ -288,6 +289,7 @@
CleanupStack::PopAndDestroy( data );
}
+ CleanupStack::Pop();
}
// ----------------------------------------------------------------------------
@@ -298,6 +300,7 @@
EXPORT_C void RSpeechSynthesis::GetVoicesL( RArray<TVoice>& aVoices,
TLanguage aLanguage )
{
+ CleanupClosePushL( aVoices );
if ( Handle() == 0 )
{
User::Leave( KErrBadHandle );
@@ -330,6 +333,7 @@
CleanupStack::PopAndDestroy( data );
}
+ CleanupStack::Pop();
}
// ----------------------------------------------------------------------------