Simple question – do i need to free or release structs. My reason for asking is that I’m use a NSInvocation and the SEL type is a struct. Just want to know if I need to release it. Thanks.
Share
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.
In Objective-C and C in general, if something is not a pointer to somewhere else in memory and the whole thing is allocated on stack, you won’t need to free it. It’ll get freed as soon as the stack pointer is adjusted at the end of function.