diff -r ea43c23d28d2 -r 1aa6688bfd6b serviceproviders/sapi_contacts_vpbk/tsrc/dev/tcontacts_async/src/tcontacts_async_blocks.cpp --- a/serviceproviders/sapi_contacts_vpbk/tsrc/dev/tcontacts_async/src/tcontacts_async_blocks.cpp Tue May 11 17:01:36 2010 +0300 +++ b/serviceproviders/sapi_contacts_vpbk/tsrc/dev/tcontacts_async/src/tcontacts_async_blocks.cpp Tue May 25 13:38:11 2010 +0300 @@ -23,7 +23,7 @@ #include #include #include - +#include #include #include #include @@ -740,7 +740,8 @@ //Check for contact void CContactsUT::CheckContactsL(TInt& aCount,RPointerArray& aIdArray) - { + { + CleanupResetAndDestroyPushL(aIdArray); // Print to UI _LIT( KContactsTest, "ContactsUT" ); _LIT( KExample, "In CheckContactsL" ); @@ -766,7 +767,8 @@ } delete iFindResults; iFindResults = NULL; - // __UHEAP_MARKENDC(aCount); + // __UHEAP_MARKENDC(aCount); + CleanupStack::Pop(&aIdArray); } // -----------------------------------------------------------------------------