emailservices/emailstore/message_store/server/src/ContainerStoreSearchHandler.cpp
--- a/emailservices/emailstore/message_store/server/src/ContainerStoreSearchHandler.cpp Thu Sep 30 11:43:07 2010 +0300
+++ b/emailservices/emailstore/message_store/server/src/ContainerStoreSearchHandler.cpp Thu Oct 14 17:33:43 2010 +0300
@@ -466,7 +466,9 @@
__LOG_WRITE_FORMAT1_INFO( "search string =%S", &searchStringPtr );
HBufC* pattern = HBufC::NewL( searchString->Length() + 2 );
+ CleanupStack::PushL( pattern );
aSearchPatterns.AppendL( pattern );
+ CleanupStack::Pop( pattern );
TPtr seartStringPrt( pattern->Des() );
//we are using MatchC(), so we need to add * to the start and end of the search pattern