phoneengine/PhoneCntFinder/ContactService/src/cphcntspeeddialimpl.cpp
branchRCL_3
changeset 22 94dc1107e8b2
parent 0 5f000ab63145
child 23 40a3f856b14d
--- a/phoneengine/PhoneCntFinder/ContactService/src/cphcntspeeddialimpl.cpp	Mon Jun 21 15:39:45 2010 +0300
+++ b/phoneengine/PhoneCntFinder/ContactService/src/cphcntspeeddialimpl.cpp	Thu Jul 15 18:38:16 2010 +0300
@@ -106,14 +106,6 @@
         TInt aSpeedDialPosition, 
         TSpdDialFieldInfo& aFieldInfo )
     {
-    
-    MVPbkContactLink* contactLink = aContact.ContactLink()->CloneLC();
-    CPhCntVPbkContactId* contactId = 
-        CPhCntVPbkContactId::NewL( contactLink, iContactManager );
-    CleanupStack::Pop(); // contactLink
-    aFieldInfo.iContactId = contactId;
-        
-    aFieldInfo.iThumbIndex = KErrNotFound;
 	TPhCntNumber speedDial = aContact.SpeedDialNumber( aSpeedDialPosition );    
 	aFieldInfo.iNumberType = speedDial.Type();
     }
@@ -260,6 +252,9 @@
     TInt err = iSpdDial->ShowAssign( aSpeedDialPosition, link );
     delete iSpdDial;
     iSpdDial = NULL;
+    delete link;
+    link = NULL;
+    
     if ( err == KErrNone )
         {
         err = FetchNumberL( aSpeedDialPosition, aPhoneNumber );