serviceproviders/sapi_contacts_vpbk/src/contactinterface.cpp
branchRCL_3
changeset 44 0b68a1b0c15e
parent 36 c210248fa89d
child 45 a9c0808a1095
--- 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