Fix memory leaks.
This commit is contained in:
1 parent
a218dfa446
commit
6358471ca8
2 files changed
+2
-1
No files matched your search
@@ -201,6 +201,7 @@ NSString * const MP42OrganizeAlternateGroups = @"MP42AlternateGroups";
|
||||
|
||||
[[self chapters] chapterAtIndex:currentSampleNum - 1].image = frame;
|
||||
|
||||
[frameData release];
|
||||
[frame release];
|
||||
free(pBytes);
|
||||
}
|
||||
|
||||
+1
-1
@@ -935,7 +935,7 @@ static const genreType_t genreType_strings[] = {
|
||||
NSArray *ratingItems = [ratingString componentsSeparatedByRegex:splitElements];
|
||||
[ratingString release];
|
||||
if ([ratingItems count] > 2)
|
||||
ratingiTunesCode = [[NSString stringWithFormat:@"%@|%@|%@|",[ratingItems objectAtIndex:0], [ratingItems objectAtIndex:1], [ratingItems objectAtIndex:2]] retain];
|
||||
ratingiTunesCode = [NSString stringWithFormat:@"%@|%@|%@|",[ratingItems objectAtIndex:0], [ratingItems objectAtIndex:1], [ratingItems objectAtIndex:2]];
|
||||
else
|
||||
ratingiTunesCode = nil;
|
||||
|
||||
|
||||
Reference in new issue
Block a user