mpx/commonframework/common/src/mpxcollectionpath.cpp
changeset 51 e61a04404bdf
parent 0 a2952bb97e68
child 56 63223d4fd956
--- a/mpx/commonframework/common/src/mpxcollectionpath.cpp	Tue Jul 06 14:48:59 2010 +0300
+++ b/mpx/commonframework/common/src/mpxcollectionpath.cpp	Wed Aug 18 10:16:02 2010 +0300
@@ -606,6 +606,7 @@
 //
 EXPORT_C void CMPXCollectionPath::SelectionL(RArray<TMPXItemId>& aIds) const
     {
+    CleanupClosePushL(aIds);
     aIds.Reset();
     TInt idCount(iIds.Count());
     TInt selCount(iSelection.Count());
@@ -617,6 +618,7 @@
             aIds.AppendL(iIds[idIndex]);
             }
         }
+    CleanupStack::Pop();
     }
 
 // -----------------------------------------------------------------------------