Dealloc for PlaylistEntry seems to shrink memory leak.

CQTexperiment
matthewleon 2008-03-09 00:22:48 +00:00
parent 637c0d598e
commit c94d31f6d9
2 changed files with 18 additions and 3 deletions

View File

@ -79,6 +79,21 @@
return [NSString stringWithFormat:@"PlaylistEntry %i:(%@)", self.index, self.URL];
}
- (void)dealloc
{
self.errorMessage = nil;
self.URL = nil;
self.artist = nil;
self.album = nil;
self.genre = nil;
self.year = nil;
self.track = nil;
self.endian = nil;
[super dealloc];
}
// Get the URL if the title is blank
@synthesize title;
- (NSString *)title

View File

@ -78,13 +78,13 @@ static NSDictionary *importKeys;
// Length is no longer a dependent key
+ (NSSet *)keyPathsForValuesAffectingLength
{
return Nil;
return nil;
}
- (void)dealloc
{
spotlightTrack = Nil;
length = Nil;
spotlightTrack = nil;
length = nil;
[super dealloc];
}