diff options
author | ritsuka <[email protected]> | 2015-03-17 13:56:21 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2015-03-17 13:56:21 +0000 |
commit | 48a9e546878ae074202e0301f428193b7915d68f (patch) | |
tree | cf3f0f270fc8c7430dec870e954c826926c02a60 /macosx/HBAudioTrack.m | |
parent | 220bd888e05696acbe1dd47f96ded78c389fc27f (diff) |
MacGui: convert the mac gui to Objective-C ARC.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6996 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudioTrack.m')
-rw-r--r-- | macosx/HBAudioTrack.m | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/macosx/HBAudioTrack.m b/macosx/HBAudioTrack.m index 5da6260f0..0c20f3437 100644 --- a/macosx/HBAudioTrack.m +++ b/macosx/HBAudioTrack.m @@ -324,37 +324,19 @@ static NSMutableArray *masterBitRateArray = nil; return masterSampleRateArray; } -- (void) dealloc -{ - [_track release]; - [_codec release]; - [_mixdown release]; - [_sampleRate release]; - [_bitRate release]; - [_drc release]; - [_gain release]; - [_videoContainerTag release]; - [_codecs release]; - [_mixdowns release]; - [_bitRates release]; - - [super dealloc]; -} - #pragma mark - #pragma mark Setters - (void)setVideoContainerTag:(NSNumber *)videoContainerTag { - [_videoContainerTag autorelease]; - _videoContainerTag = [videoContainerTag retain]; + _videoContainerTag = videoContainerTag; [self updateCodecs]; } - (void)setTrack:(NSDictionary *)track { NSDictionary *oldValue = _track; - _track = [track retain]; + _track = track; if (nil != _track) { [self updateCodecs]; @@ -372,29 +354,25 @@ static NSMutableArray *masterBitRateArray = nil; [self.delegate settingTrackToNone: self]; } } - [oldValue release]; } - (void)setCodec:(NSDictionary *)codec { - [_codec autorelease]; - _codec = [codec retain]; + _codec = codec; [self updateMixdowns: YES]; [self updateBitRates: YES]; } - (void)setMixdown:(NSDictionary *)mixdown { - [_mixdown autorelease]; - _mixdown = [mixdown retain]; + _mixdown = mixdown; [self updateBitRates: YES]; [self.delegate mixdownChanged]; } - (void)setSampleRate:(NSDictionary *)sampleRate { - [_sampleRate autorelease]; - _sampleRate = [sampleRate retain]; + _sampleRate = sampleRate; [self updateBitRates: NO]; } @@ -650,4 +628,3 @@ static NSMutableArray *masterBitRateArray = nil; } @end - |