0
我在我的項目中使用ARC,並在以下內容中發現潛在的內存泄漏(請參閱註釋行)。不知道如何處理它。people使用ARC的Picker內存泄漏
-(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker
shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier{
ABMultiValueRef phoneProperty = ABRecordCopyValue(person,property);
// Call to function 'ABRecordCopyValue' returns a Core Foundation object with a +1 retain count
int idx = ABMultiValueGetIndexForIdentifier (phoneProperty, identifier);
emailToValue= (__bridge_transfer NSString *)ABMultiValueCopyValueAtIndex(phoneProperty,idx);
// Object Leaked: object allocated and stored into 'phoneProperty' is not referenced later in this execution path and has a retain count of +1
任何意見,將不勝感激。
在此先感謝。