--- a/phonebookengines/VirtualPhonebook/VPbkSimStore/src/CRefineView.cpp Tue Apr 27 16:23:35 2010 +0300
+++ b/phonebookengines/VirtualPhonebook/VPbkSimStore/src/CRefineView.cpp Tue May 11 16:00:21 2010 +0300
@@ -123,6 +123,7 @@
//
void CRefineView::MatchL( RPointerArray<MVPbkSimContact>& aMatchedContacts )
{
+ CleanupClosePushL( aMatchedContacts );
const TInt contactCount = iParentView.ContactCountL();
for ( TInt i = 0; i < contactCount; ++i )
{
@@ -140,6 +141,7 @@
aMatchedContacts.AppendL( nativeContact );
}
}
+ CleanupStack::Pop();
}
// --------------------------------------------------------------------------
@@ -150,6 +152,7 @@
TInt aIndex, const MVPbkContactLink& /*aContactLink*/,
RPointerArray<MVPbkSimContact>& aMatchedContacts )
{
+ CleanupClosePushL( aMatchedContacts );
if ( &iParentView == &aView &&
IsMatchL( iParentView.ContactAtL( aIndex )))
{
@@ -198,7 +201,8 @@
{
aMatchedContacts.AppendL( nativeContact );
}
- }
+ }
+ CleanupStack::Pop();
}
// --------------------------------------------------------------------------