diff options
author | ritsuka <[email protected]> | 2014-12-22 07:30:12 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2014-12-22 07:30:12 +0000 |
commit | 546f57a1402492f2aedeab1ca6cf9f3d3201795f (patch) | |
tree | f34dcfe06110e8411db490c807385983a2d87457 /macosx/HBAudioController.m | |
parent | f258fb8da28967d8f2e2ddaf814233058197044f (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.m | 5 |
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; } |