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