srsf/speechsynthesis/client/src/speechsynthesis.cpp
branchRCL_3
changeset 11 6347473a7bb2
parent 0 bf1d17376201
--- 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(); 
     }
 
 // ----------------------------------------------------------------------------