Memory management

From IPhone Dev FAQ

Jump to: navigation, search

KismetWW> do you need to release before you dealloc?

[2:10am] <refulgentis_lapt> you should never call dealloc, i thought

[2:10am] <jtbandes> KismetWW, you never call dealloc

[2:10am] <KismetWW> I thought you dealloc if there's a memory warning. Is releasing then enough?

[2:10am] <jtbandes> You never call dealloc manually. Always releas. If it's been fully released, it will dealloc on its own.

[2:10am] <august> the only time you should call dealloc is calling [super dealloc] from within your class's own dealloc

Personal tools