textinput/ptienginev2/src/PtiKeyboardDatabase.cpp
branchRCL_3
changeset 9 e6a39382bb9c
parent 0 eb1f2e154e89
child 20 ebd48d2de13c
--- a/textinput/ptienginev2/src/PtiKeyboardDatabase.cpp	Wed Apr 14 16:18:34 2010 +0300
+++ b/textinput/ptienginev2/src/PtiKeyboardDatabase.cpp	Tue Apr 27 16:59:43 2010 +0300
@@ -88,6 +88,7 @@
 EXPORT_C TInt CPtiKeyboardDatabaseFactory::CreateMappingTableWithOpaqueL(TInt aInterfaceUid,
                                                   RArray<TPtiKeyboardDatabaseMappingOpaque>& aResult)
     {
+	CleanupClosePushL( aResult );
 	TInt res = 0;
 	TPtiKeyboardDatabaseMappingOpaque map;	
 	RImplInfoPtrArray infoArray;
@@ -106,6 +107,7 @@
 		
 	CleanupStack::PopAndDestroy(); // infoArray    
 
+    CleanupStack::Pop();
 	return res;    
     }
 		
@@ -134,6 +136,7 @@
 EXPORT_C void CPtiKeyboardDatabaseFactory::ListImplementationsL(TInt aCoreUid, 
                                                                 RArray<TInt>& aResult)
     {
+	CleanupClosePushL( aResult );
 	RImplInfoPtrArray infoArray;
 	TInt i;
 
@@ -146,6 +149,7 @@
 		}
 
 	CleanupStack::PopAndDestroy(); // infoArray     
+    CleanupStack::Pop();
     }
         
 // ---------------------------------------------------------------------------