srsf/sispeechrecognitiondata/src/nsssispeechrecognitiondatadevasr.cpp
branchRCL_3
changeset 11 6347473a7bb2
parent 0 bf1d17376201
child 13 46625afeb3de
--- a/srsf/sispeechrecognitiondata/src/nsssispeechrecognitiondatadevasr.cpp	Wed Apr 14 15:58:44 2010 +0300
+++ b/srsf/sispeechrecognitiondata/src/nsssispeechrecognitiondatadevasr.cpp	Tue May 11 16:14:47 2010 +0300
@@ -20,6 +20,7 @@
 // INCLUDE FILES
 #include <e32std.h>
 #include <s32mem.h>
+#include <mmf\common\mmfcontrollerpluginresolver.h>
 #include "nsssispeechrecognitiondatadevasr.h"
 #include "nsssispeechrecognitiondatatest.h"
 #include "nsssidataserialize.h"
@@ -2128,6 +2129,7 @@
 												 const TInt aIndex,
 												 RPointerArray<CSIPronunciationInfo>& aPronunciations ) const
 {
+	CleanupResetAndDestroyPushL( aPronunciations ); 
 	// clear given array
 	aPronunciations.Reset();
 	
@@ -2140,6 +2142,7 @@
 			User::LeaveIfError( error );
 		}
 	}
+	CleanupStack::Pop( &aPronunciations ); 
 }
 /*****************************************************************************/