summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-12-22 07:30:12 +0000
committerritsuka <[email protected]>2014-12-22 07:30:12 +0000
commit546f57a1402492f2aedeab1ca6cf9f3d3201795f (patch)
treef34dcfe06110e8411db490c807385983a2d87457 /macosx/HBAudioController.m
parentf258fb8da28967d8f2e2ddaf814233058197044f (diff)
MacGui: fixed a number of memory leaks. Do not set some deprecated hb_job fields.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6637 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudioController.m')
-rw-r--r--macosx/HBAudioController.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/macosx/HBAudioController.m b/macosx/HBAudioController.m
index 1f9a1207e..bc2b6e45d 100644
--- a/macosx/HBAudioController.m
+++ b/macosx/HBAudioController.m
@@ -494,7 +494,8 @@ NSString *HBMixdownChangedNotification = @"HBMixdownChangedNotification";
if (job)
{
- audioArray = job.audioTracks;
+ [audioArray release];
+ audioArray = [job.audioTracks retain];
self.settings = job.audioDefaults;
// Reinitialize the master list of available audio tracks from this title
@@ -510,6 +511,8 @@ NSString *HBMixdownChangedNotification = @"HBMixdownChangedNotification";
}
else
{
+ [audioArray release];
+ audioArray = nil;
self.settings = nil;
self.masterTrackArray = nil;
}