Re: Memory leak if alloc succeeds but init fails?
Re: Memory leak if alloc succeeds but init fails?
- Subject: Re: Memory leak if alloc succeeds but init fails?
- From: Shawn Erickson <email@hidden>
- Date: Mon, 01 Oct 2007 07:59:33 -0700
On Oct 1, 2007, at 7:45 AM, Jeremy Hughes wrote:
For example, C++ memory allocation automatically throws an
exception if
the memory could not be allocated. There is no result that you can
check.
..unless you turn off exceptions or that feature. Then you check for
NULL.
-Shawn
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden