diff -r 3c221667e687 -r 94dc1107e8b2 phoneengine/PhoneCntFinder/ContactService/src/cphcntspeeddialimpl.cpp --- 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 );