summaryrefslogtreecommitdiffstats
path: root/macosx/HBPresets.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2013-10-15 11:36:51 +0000
committerritsuka <[email protected]>2013-10-15 11:36:51 +0000
commitedc929027efbdade94a7e1c895308df8d058086b (patch)
tree6a1dd18b796c22d827e525457095ab26d2b09269 /macosx/HBPresets.m
parent186685f0ab2f2db4e37d50e8291ef8997153d831 (diff)
MacGUI: fixed a number of leaks/null-deferences/dead-code found by clang static analyzer.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5838 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPresets.m')
-rw-r--r--macosx/HBPresets.m34
1 files changed, 23 insertions, 11 deletions
diff --git a/macosx/HBPresets.m b/macosx/HBPresets.m
index a97284b11..45ebab139 100644
--- a/macosx/HBPresets.m
+++ b/macosx/HBPresets.m
@@ -207,7 +207,8 @@
[audioListArray addObject:audioTrack2Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
-
+ [audioListArray release];
+
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];
@@ -311,7 +312,8 @@
[audioListArray addObject:audioTrack1Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
-
+ [audioListArray release];
+
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];
@@ -415,7 +417,8 @@
[audioListArray addObject:audioTrack1Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
-
+ [audioListArray release];
+
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];
@@ -519,7 +522,8 @@
[audioListArray addObject:audioTrack1Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
-
+ [audioListArray release];
+
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];
@@ -635,7 +639,8 @@
[audioListArray addObject:audioTrack2Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
-
+ [audioListArray release];
+
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];
@@ -750,7 +755,8 @@
[audioListArray addObject:audioTrack2Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
-
+ [audioListArray release];
+
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];
@@ -865,7 +871,8 @@
[audioListArray addObject:audioTrack2Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
-
+ [audioListArray release];
+
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];
@@ -969,7 +976,8 @@
[audioListArray addObject:audioTrack1Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
-
+ [audioListArray release];
+
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];
@@ -1073,6 +1081,7 @@
[audioListArray addObject:audioTrack1Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
+ [audioListArray release];
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];
@@ -1177,7 +1186,8 @@
[audioListArray addObject:audioTrack1Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
-
+ [audioListArray release];
+
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];
@@ -1281,7 +1291,8 @@
[audioListArray addObject:audioTrack1Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
-
+ [audioListArray release];
+
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];
@@ -1396,7 +1407,8 @@
[audioListArray addObject:audioTrack2Array];
/* Add the audio track(s) to the preset's audio list */
[preset setObject:[NSMutableArray arrayWithArray:audioListArray] forKey:@"AudioList"];
-
+ [audioListArray release];
+
/* Subtitles (note: currently ignored) */
[preset setObject:@"None" forKey:@"Subtitles"];