Fix for spotlight playlistentry dealloc and added missing fields to playlistentry dealloc.

CQTexperiment
vspader 2008-03-09 02:05:00 +00:00
parent c94d31f6d9
commit 208065494c
2 changed files with 20 additions and 15 deletions

View File

@ -81,17 +81,20 @@
- (void)dealloc - (void)dealloc
{ {
self.errorMessage = nil; self.errorMessage = nil;
self.URL = nil; self.URL = nil;
self.artist = nil;
self.album = nil; self.artist = nil;
self.genre = nil; self.album = nil;
self.year = nil; self.title = nil;
self.track = nil; self.genre = nil;
self.year = nil;
self.endian = nil; self.track = nil;
[super dealloc];
self.endian = nil;
[super dealloc];
} }
// Get the URL if the title is blank // Get the URL if the title is blank
@ -102,7 +105,7 @@
{ {
return [[self.URL path] lastPathComponent]; return [[self.URL path] lastPathComponent];
} }
return [[title retain] autorelease]; return title;
} }
@dynamic display; @dynamic display;

View File

@ -83,11 +83,13 @@ static NSDictionary *importKeys;
- (void)dealloc - (void)dealloc
{ {
spotlightTrack = nil; self.length = nil;
length = nil; self.spotlightTrack = nil;
[super dealloc];
[super dealloc];
} }
@synthesize length; @synthesize length;
@synthesize spotlightTrack; @synthesize spotlightTrack;