--- a/textinput/ptienginev2/src/PtiLanguageDatabase.cpp Wed Apr 14 16:18:34 2010 +0300
+++ b/textinput/ptienginev2/src/PtiLanguageDatabase.cpp Tue Apr 27 16:59:43 2010 +0300
@@ -386,6 +386,7 @@
//
EXPORT_C TInt CPtiLanguageDatabase::CreateMappingTableL(TInt aCoreUid, RArray<TPtiLangDatabaseMapping>& aResult)
{
+ CleanupClosePushL( aResult );
TInt res = 0, i, lc;
TPtiLangDatabaseMapping map;
CArrayFix<TInt>* dbs = ListDatabasesLC(aCoreUid);
@@ -413,6 +414,7 @@
}
CleanupStack::PopAndDestroy(); // dbs
+ CleanupStack::Pop( &aResult );
return res;
}
@@ -424,6 +426,7 @@
//
EXPORT_C TInt CPtiLanguageDatabase::CreateMappingTableWithOpaqueL(TInt aCoreUid, RArray<TPtiLangDatabaseMappingOpaque>& aResult)
{
+ CleanupClosePushL( aResult );
TInt res = 0, lc;
TPtiLangDatabaseMappingOpaque map;
RImplInfoPtrArray infoArray;
@@ -458,7 +461,7 @@
}
CleanupStack::PopAndDestroy(); // infoArray
-
+ CleanupStack::Pop( &aResult );
return res;
}