NSString potential leak

Posted by VansFannel on Stack Overflow See other posts from Stack Overflow or by VansFannel
Published on 2010-04-14T14:22:15Z Indexed on 2010/04/14 14:53 UTC
Read the original article Hit count: 182

Filed under:
|
|

Hello.

When I build and analyze my project on XCode, I obtain a 'warning' on the following line:

NSString *contactEmail = (NSString *)ABMultiValueCopyValueAtIndex(emailInfo, 0);

The message is: Potential leak on object allocated on line ... and stored into contactEmail.

Is there any error on that line?

UPDATE

I get the same 'warning' with this line of code:

ABMultiValueRef emailInfo = ABRecordCopyValue(person, kABPersonEmailProperty);

But here, I can't do this:

[emailInfo release];

I'm developing for iPhone.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about memory-leaks