Re: { Semi-Newbie } Inverse of +initialize?
Re: { Semi-Newbie } Inverse of +initialize?
- Subject: Re: { Semi-Newbie } Inverse of +initialize?
- From: Richard Kendall Wolf <email@hidden>
- Date: Fri, 11 Oct 2002 18:22:13 -0500
On Friday, October 11, 2002, at 05:01 PM, John C. Randolph wrote:
All this would do is make your app take longer to terminate.
There's no point to freeing memory when the app is quitting.
This is the official blessing I was looking for.
I know this will sound weird but, in some environments, this kind of
thing really does matter. In NetWare, for example, it is an error (and
considered bad practice) not to free every single byte of storage you
allocate ... even when the kernel would deallocate the memory anyway.
When a NetWare application unloads, it will report, by way of console
errors, every single resource that wasn't properly deallocated (if
every malloc isn't balanced by a free, you get an ugly error). It
might seem stupid, but it keeps you on your toes.
I know NetWare and Mac OS X are very different things, but like I said
to a list member offline, every time I assume something will probably
be okay, I always feel like an official reality check is in order. :-)
Exercising due caution can't be wrong, can it? :-)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.