ContactDetailsTableViewController.m: do not use __bridge_transfer when modifiyng contact to avoid another crash

This commit is contained in:
Gautier Pelloux-Prayer 2015-06-08 11:30:17 +02:00
parent 5b0971f31f
commit 2d288f3a21

View file

@ -405,7 +405,7 @@ static const ContactSections_e contactSections[ContactSections_MAX] = {ContactSe
if (property == kABPersonInstantMessageProperty ) {
// when we query the instanteMsg property we get a dictionary instead of a value
toRelease = valueRef;
value = (__bridge_transfer NSString*)CFDictionaryGetValue(valueRef, kABPersonInstantMessageUsernameKey);
value = CFDictionaryGetValue(valueRef, kABPersonInstantMessageUsernameKey);
} else {
value = (__bridge_transfer NSString*)valueRef;
}