Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lab 12: Objective C Tutorial: memory management and free #15

Open
aaronbloomfield opened this issue Jun 21, 2017 · 0 comments
Open

lab 12: Objective C Tutorial: memory management and free #15

aaronbloomfield opened this issue Jun 21, 2017 · 0 comments

Comments

@aaronbloomfield
Copy link
Collaborator

From aaronbloomfield#134:

free isn't a method in NSObject (perhaps it was at the time of writing and it isn't any more). I'm not too familiar with Objective C memory management (other than knowing it uses reference counting), but I believe that the proper way to deallocate an object created with [SomeObject new] is with the release keyword (e.g., [SomeObject release]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant