When I create and analyze my project on Xcode, I get a “warning” in the following line:
NSString *contactEmail = (NSString *)ABMultiValueCopyValueAtIndex(emailInfo, 0);
Message: Potential leak of object highlighted in line ... and stored in contactEmail.
Is there an error on this line?
UPDATE
I get the same “warning” with this line of code:
ABMultiValueRef emailInfo = ABRecordCopyValue(person, kABPersonEmailProperty);
But here I can not do this:
[emailInfo release]
I am developing for the iPhone.
source
share