webservices/wsframework/src/senmessagecontext.cpp
changeset 29 5743aa3a72c3
parent 0 62f9d29f7211
child 37 1adb97a15c2f
--- a/webservices/wsframework/src/senmessagecontext.cpp	Sun May 30 23:54:06 2010 +0530
+++ b/webservices/wsframework/src/senmessagecontext.cpp	Thu Jul 08 14:00:07 2010 +0530
@@ -397,6 +397,7 @@
     CSenContextItem* pItem = MessageToItem( apMessage, aOwned, leaveCode );
     if( leaveCode != KErrNone ) 
         {
+         delete pItem;	
         return leaveCode;
         }
 
@@ -415,6 +416,7 @@
     CSenContextItem* pItem = MessageToItem( apMessage, aOwned, leaveCode );
     if( leaveCode != KErrNone ) 
         {
+        	delete pItem;
         return leaveCode;
         }