I’m trying to make app with xcode 4.2 and i’m really confused whay happen this.
Could someone help me an explain me why have error in lines when appear &error
Passing address of non-local object to __autoreleasing parameter for write-back
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It would have been easier to diagnose the error without having to guess at the line number on which it occurs, but I think the issue is your use of the error instance variable to pass as the error here:
also here
The reason is that, if an error occcurs, in
setCategory:error:the existing value oferrorwill be overwritten without being released and is thus a potential leak.