--- a/ipsservices/ipssosplugin/src/ipsplgsearch.cpp Wed Sep 15 17:47:19 2010 +0300
+++ b/ipsservices/ipssosplugin/src/ipsplgsearch.cpp Thu Sep 30 11:43:07 2010 +0300
@@ -744,14 +744,12 @@
{
FUNC_LOG;
CFSMailMessage* obsMail = iMapper->GetMailMessageL( *iActiveEntry );
- CleanupStack::PushL( obsMail );
-
+ TFSMailMsgId id = obsMail->GetMessageId();
+ // obsMail ownership is transferred
iObserver->MatchFoundL( obsMail );
+ return id;
+ }
- CleanupStack::Pop( obsMail );
- return obsMail->GetMessageId();
- }
-
// ---------------------------------------------------------------------------
// From class MIpsPlgSearch.
// CIpsPlgSearch::SearchFinished()