imstutils/imconversationview/imcvuiapp/src/cimcvappsmileiconutility.cpp
branchRCL_3
changeset 16 d20aea8a18b6
parent 0 5e5d6b214f4f
child 27 2b7283837edb
--- a/imstutils/imconversationview/imcvuiapp/src/cimcvappsmileiconutility.cpp	Wed Apr 14 15:46:18 2010 +0300
+++ b/imstutils/imconversationview/imcvuiapp/src/cimcvappsmileiconutility.cpp	Tue Apr 27 16:24:22 2010 +0300
@@ -213,6 +213,8 @@
 void CIMCVAppSmileIconUtility::SearchSmilesL( const TDesC& aStr, TDes& aFixedStr,
 										 RArray<TInt>* aArray )
 	{
+	CleanupClosePushL(*aArray);
+	
 	IM_CV_LOGS(TXT("CIMCVAppSmileIconUtility::SearchSmilesL() start") );
 	TInt i;
     iSmileArray.ResetAndDestroy();
@@ -227,6 +229,9 @@
 		}
     
 	iSmileArray.ResetAndDestroy();
+	
+	CleanupStack::Pop(aArray);
+	
 	IM_CV_LOGS(TXT("CIMCVAppSmileIconUtility::SearchSmilesL() end") );
 	}
 
@@ -240,6 +245,8 @@
                          TDes* aFixedStr /*= NULL */,
                          TInt aStartPos /* = 0 */) const
     {
+	CleanupClosePushL(aSmileyInfoArray);
+	
 	IM_CV_LOGS(TXT("CIMCVAppSmileIconUtility::SearchSmilesL() start") );
 	HBufC* text = HBufC::NewMaxLC( aStr.Length() );
 	TPtr fixedText( text->Des() );
@@ -298,6 +305,8 @@
         }
         
     CleanupStack::PopAndDestroy( 2, text ); // replaceString, text
+    CleanupStack::Pop(&aSmileyInfoArray);
+    
 	IM_CV_LOGS(TXT("CIMCVAppSmileIconUtility::SearchSmilesL() end") );
     }