Dealloc for PlaylistEntry seems to shrink memory leak.
This commit is contained in:
parent
637c0d598e
commit
c94d31f6d9
2 changed files with 18 additions and 3 deletions
|
@ -79,6 +79,21 @@
|
||||||
return [NSString stringWithFormat:@"PlaylistEntry %i:(%@)", self.index, self.URL];
|
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
|
// Get the URL if the title is blank
|
||||||
@synthesize title;
|
@synthesize title;
|
||||||
- (NSString *)title
|
- (NSString *)title
|
||||||
|
|
|
@ -78,13 +78,13 @@ static NSDictionary *importKeys;
|
||||||
// Length is no longer a dependent key
|
// Length is no longer a dependent key
|
||||||
+ (NSSet *)keyPathsForValuesAffectingLength
|
+ (NSSet *)keyPathsForValuesAffectingLength
|
||||||
{
|
{
|
||||||
return Nil;
|
return nil;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)dealloc
|
- (void)dealloc
|
||||||
{
|
{
|
||||||
spotlightTrack = Nil;
|
spotlightTrack = nil;
|
||||||
length = Nil;
|
length = nil;
|
||||||
[super dealloc];
|
[super dealloc];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue