From 208065494c72aa48ee8a79f4019cfc05267fba10 Mon Sep 17 00:00:00 2001 From: vspader Date: Sun, 9 Mar 2008 02:05:00 +0000 Subject: [PATCH] Fix for spotlight playlistentry dealloc and added missing fields to playlistentry dealloc. --- Playlist/PlaylistEntry.m | 27 +++++++++++++++------------ Spotlight/SpotlightPlaylistEntry.m | 8 +++++--- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/Playlist/PlaylistEntry.m b/Playlist/PlaylistEntry.m index 7f1cec2b7..fdfc3ad65 100644 --- a/Playlist/PlaylistEntry.m +++ b/Playlist/PlaylistEntry.m @@ -81,17 +81,20 @@ - (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]; + self.errorMessage = nil; + + self.URL = nil; + + self.artist = nil; + self.album = nil; + self.title = nil; + self.genre = nil; + self.year = nil; + self.track = nil; + + self.endian = nil; + + [super dealloc]; } // Get the URL if the title is blank @@ -102,7 +105,7 @@ { return [[self.URL path] lastPathComponent]; } - return [[title retain] autorelease]; + return title; } @dynamic display; diff --git a/Spotlight/SpotlightPlaylistEntry.m b/Spotlight/SpotlightPlaylistEntry.m index dab1b4d57..62485810f 100644 --- a/Spotlight/SpotlightPlaylistEntry.m +++ b/Spotlight/SpotlightPlaylistEntry.m @@ -83,11 +83,13 @@ static NSDictionary *importKeys; - (void)dealloc { - spotlightTrack = nil; - length = nil; - [super dealloc]; + self.length = nil; + self.spotlightTrack = nil; + + [super dealloc]; } + @synthesize length; @synthesize spotlightTrack;