srsf/ttscustomcommands/src/nssttscustomcommandparser.cpp
branchRCL_3
changeset 11 6347473a7bb2
parent 0 bf1d17376201
--- a/srsf/ttscustomcommands/src/nssttscustomcommandparser.cpp	Wed Apr 14 15:58:44 2010 +0300
+++ b/srsf/ttscustomcommands/src/nssttscustomcommandparser.cpp	Tue May 11 16:14:47 2010 +0300
@@ -427,10 +427,11 @@
     TInt* languageCount = intPtrPckg();
     
     RArray<TLanguage> languages;
+    CleanupClosePushL( languages ); 
     iImplementor.MttscGetSupportedLanguagesL( languages );
     *languageCount = languages.Count();
 
-    languages.Close();
+    CleanupStack::PopAndDestroy();
     }
     
 // -----------------------------------------------------------------------------
@@ -484,9 +485,10 @@
     TInt* voiceCount = intPtrPckg();
     
     RArray<TTtsStyle> voices;
+    CleanupClosePushL( voices ); 
     iImplementor.MttscGetSupportedVoicesL( language, voices );
     *voiceCount = voices.Count();
 
-    voices.Close();    
+    CleanupStack::PopAndDestroy( );
     }
 // End of File