phonebookui/Phonebook/View/src/TPbkAddItemManager.cpp
branchRCL_3
changeset 11 2828b4d142c0
parent 0 e686773b3f54
--- a/phonebookui/Phonebook/View/src/TPbkAddItemManager.cpp	Tue Apr 27 16:23:35 2010 +0300
+++ b/phonebookui/Phonebook/View/src/TPbkAddItemManager.cpp	Tue May 11 16:00:21 2010 +0300
@@ -90,6 +90,7 @@
         const TPbkAddItemWrapper& aItemWrapper,
         RArray<TInt>& aAddedItemsControlIds)
     {
+    CleanupClosePushL( aAddedItemsControlIds );
     aAddedItemsControlIds.Reset();
 
     for (TInt i = 0; i < aItemWrapper.FieldInfoCount(); ++i)
@@ -102,6 +103,7 @@
             User::LeaveIfError(aAddedItemsControlIds.Append(field.ControlId()));
 			}
         }
+    CleanupStack::Pop();
     }
 
 /**
@@ -113,6 +115,7 @@
         const CPbkFieldsInfo& aFieldsInfo,
         RArray<TPbkAddItemWrapper>& aAddItems) const
     {
+    CleanupClosePushL( aAddItems );
     aAddItems.Reset();
     const TInt fieldInfoCount = aFieldsInfo.Count();
     
@@ -161,6 +164,7 @@
             }
         }
     CleanupStack::PopAndDestroy(); // addedGroups
+    CleanupStack::Pop();
     }
 
 // End of File