Commit 990bd544 authored by Felix Paul Kühne's avatar Felix Paul Kühne

MLFile: fix memory leaks

parent 915955ce
......@@ -120,7 +120,9 @@ NSString *kMLFileTypeAudio = @"audio";
[name appendString:episode.name];
}
return [NSString stringWithString:name];
NSString *returnValue = [NSString stringWithString:name];
[name release];
return returnValue;
} else if ([self isAlbumTrack]) {
MLAlbumTrack *track = self.albumTrack;
if (track && track.title.length > 0) {
......@@ -132,7 +134,9 @@ NSString *kMLFileTypeAudio = @"audio";
if (track.artist.length > 0)
[name appendFormat:@" - %@", track.artist];
return [NSString stringWithString:name];
NSString *returnValue = [NSString stringWithString:name];
[name release];
return returnValue;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment