ipsservices/ipssosplugin/src/ipsplgsearch.cpp
changeset 74 6c59112cfd31
parent 51 d845db10c0d4
child 76 38bf5461e270
--- 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()