When I exit out of an App, everything is released? Or if I have any pointer-arrays(malloc), do I have to release the pointers before exiting the App?
thanks
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.
This is not defined by the C specification (and thus not formally defined in Objective-C) but on iOS and all other modern operating systems, when a process terminates, its memory is returned to the system. So yes, any such pointers will be freed appropriately, though C++ destructors and Objective-C
-deallocimplementations will not be run.