Simple dealloc question
Simple dealloc question
- Subject: Simple dealloc question
- From: Bob Ueland <email@hidden>
- Date: Mon, 15 Oct 2007 00:58:00 -0700 (PDT)
Found the following code in an example (track is a pointer to a Track object)
- (void)dealloc
{
[track release], track = nil;
[super dealloc];
}
What is the point of having track = nil? Wouldn't the following code be enough?
- (void)dealloc
{
[track release];
[super dealloc];
}
Bob
____________________________________________________________________________________
Shape Yahoo! in your own image. Join our Network Research Panel today! http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7
_______________________________________________
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