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;
|
[[self chapters] chapterAtIndex:currentSampleNum - 1].image = frame;
|
||||||
|
|
||||||
|
[frameData release];
|
||||||
[frame release];
|
[frame release];
|
||||||
free(pBytes);
|
free(pBytes);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -935,7 +935,7 @@ static const genreType_t genreType_strings[] = {
|
|||||||
NSArray *ratingItems = [ratingString componentsSeparatedByRegex:splitElements];
|
NSArray *ratingItems = [ratingString componentsSeparatedByRegex:splitElements];
|
||||||
[ratingString release];
|
[ratingString release];
|
||||||
if ([ratingItems count] > 2)
|
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
|
else
|
||||||
ratingiTunesCode = nil;
|
ratingiTunesCode = nil;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user