emailservices/emailstore/message_store/server/src/MsgStoreStringSortResultRowSet.cpp
changeset 76 38bf5461e270
parent 51 d845db10c0d4
--- a/emailservices/emailstore/message_store/server/src/MsgStoreStringSortResultRowSet.cpp	Thu Sep 30 11:43:07 2010 +0300
+++ b/emailservices/emailstore/message_store/server/src/MsgStoreStringSortResultRowSet.cpp	Thu Oct 14 17:33:43 2010 +0300
@@ -889,9 +889,10 @@
 void CMsgStoreStringSortResultRowSet::AddRowL( TContainerId aMessageId, const TDesC& aString, TInt64 aDate )
     {
     CStringRow* row = CStringRow::NewL( aMessageId, aDate, aString );
+    CleanupStack::PushL( row );
     row->SetGroupId( iCurGroupId++ );
     InsertInOrderL( row );
-    
+    CleanupStack::Pop( row );
     //we need to find out where is the newly added row, if it is the first or 
     //the last element in the sorted array, than it's position MAY NOT be accurate, 
     //because we DON'T have the entire table in memory, in this case, we have to either