diff -r 1790c2f1027c -r 0b68a1b0c15e serviceproviders/sapi_contacts_vpbk/src/contactinterface.cpp --- a/serviceproviders/sapi_contacts_vpbk/src/contactinterface.cpp Thu Aug 19 10:46:25 2010 +0300 +++ b/serviceproviders/sapi_contacts_vpbk/src/contactinterface.cpp Tue Aug 31 16:06:03 2010 +0300 @@ -406,12 +406,7 @@ //iDburi = HBufC::NewL(VPbkContactStoreUris::DefaultCntDbUri().Length()); //set the DBUri to the default value. //iDburi->Des().Copy(VPbkContactStoreUris::DefaultCntDbUri()); - if(iDburi) - { - delete iDburi; - iDburi=NULL; - } - iDburi = GetDefaultDBUri().AllocL(); + iDburi = GetDefaultDBUri().AllocLC(); //get the number of entries in the map TInt keyCount = aMap->Count(); @@ -1783,7 +1778,7 @@ User::Leave(err); } } - //CleanupStack::Pop(); + CleanupStack::Pop(); CleanupStack::Pop(contact); } //end of if pMap else