Dealloc for PlaylistEntry seems to shrink memory leak.
parent
637c0d598e
commit
c94d31f6d9
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue