Re: Simple instance [[alloc] init] question.
Re: Simple instance [[alloc] init] question.
- Subject: Re: Simple instance [[alloc] init] question.
- From: Charles Srstka <email@hidden>
- Date: Mon, 30 Aug 2010 21:01:47 -0500
On Aug 30, 2010, at 7:23 PM, Frederick C. Lee wrote:
> // 1)
> self.serialIDs = [[IRMSerialDetailsDO alloc] init];
This is, as mentioned, a leak, although if performance is not an issue, you can still have the simplicity:
self.serialIDs = [[[IRMSerialDetailsDO alloc] init] autorelease];
Charles_______________________________________________
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