diff -r 0b68a1b0c15e -r a9c0808a1095 serviceproviders/sapi_contacts_vpbk/tsrc/dev/tcontacts_sync/src/tcontacts_sync_blocks.cpp --- a/serviceproviders/sapi_contacts_vpbk/tsrc/dev/tcontacts_sync/src/tcontacts_sync_blocks.cpp Tue Aug 31 16:06:03 2010 +0300 +++ b/serviceproviders/sapi_contacts_vpbk/tsrc/dev/tcontacts_sync/src/tcontacts_sync_blocks.cpp Wed Sep 01 12:28:47 2010 +0100 @@ -23,7 +23,7 @@ #include #include #include - +#include #include #include #include @@ -582,7 +582,8 @@ //Check for contact void CContactsUT::CheckContactsL(TInt& aCount,RPointerArray& aIdArray) - { + { + CleanupResetAndDestroyPushL(aIdArray); // Print to UI _LIT( KContactsTest, "ContactsUT" ); _LIT( KExample, "In CheckContactsL" ); @@ -608,7 +609,8 @@ } delete iFindResults; iFindResults = NULL; - // __UHEAP_MARKENDC(aCount); + // __UHEAP_MARKENDC(aCount); + CleanupStack::Pop(&aIdArray); } // -----------------------------------------------------------------------------