landmarks/locationlandmarks/localaccess/src/epos_rposlmlocalnameindex.cpp
changeset 18 3825cf2dc8c2
parent 0 667063e416a2
--- a/landmarks/locationlandmarks/localaccess/src/epos_rposlmlocalnameindex.cpp	Tue Feb 02 10:12:24 2010 +0200
+++ b/landmarks/locationlandmarks/localaccess/src/epos_rposlmlocalnameindex.cpp	Fri Apr 16 15:23:31 2010 +0300
@@ -46,8 +46,10 @@
     TPosLmItemId aId, const TDesC& aName )
     {
     CIndexItem* self = new (ELeave) CIndexItem;
+    CleanupStack::PushL( self );
     self->iId = aId;
     self->iName = aName.AllocL();
+    CleanupStack::Pop( self );
     return self;
     }
 
@@ -275,7 +277,7 @@
 
     TInt err = iSession.SendReceive( EPosLmServerUpdateNameIndex, 
         TIpcArgs( EPosLmServerRemoveLandmarks, &idsDes ) );
-    delete ids;
+        delete[] ids;
     User::LeaveIfError( err );
     }