mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
ContactDetailsTableViewController: avoid double-free crash clicking the second time on a contact SIP address due to CFBridgingRelease instead of __bridge cast
This commit is contained in:
parent
e086e81515
commit
5b0971f31f
1 changed files with 1 additions and 1 deletions
|
|
@ -594,7 +594,7 @@ static const ContactSections_e contactSections[ContactSections_MAX] = {ContactSe
|
|||
ABMultiValueRef lMap = ABRecordCopyValue(contact, kABPersonInstantMessageProperty);
|
||||
NSInteger index = ABMultiValueGetIndexForIdentifier(lMap, [entry identifier]);
|
||||
CFDictionaryRef lDict = ABMultiValueCopyValueAtIndex(lMap, index);
|
||||
NSString* valueRef = CFBridgingRelease(CFDictionaryGetValue(lDict, kABPersonInstantMessageUsernameKey));
|
||||
NSString* valueRef = (__bridge NSString*)(CFDictionaryGetValue(lDict, kABPersonInstantMessageUsernameKey));
|
||||
dest = [FastAddressBook normalizeSipURI:(NSString*) valueRef];
|
||||
CFRelease(lDict);
|
||||
CFRelease(lMap);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue