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/HBOutputRedirect.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/HBOutputRedirect.m')
-rw-r--r-- | macosx/HBOutputRedirect.m | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/macosx/HBOutputRedirect.m b/macosx/HBOutputRedirect.m index 9856e840a..f0561888f 100644 --- a/macosx/HBOutputRedirect.m +++ b/macosx/HBOutputRedirect.m @@ -50,7 +50,6 @@ int stdoutwrite(void *inFD, const char *buffer, int size) { NSData *data = [[NSData alloc] initWithBytes:buffer length:size]; [g_stdoutRedirect performSelectorOnMainThread:@selector(forwardOutput:) withObject:data waitUntilDone:NO]; - [data release]; } return size; } @@ -61,7 +60,6 @@ int stderrwrite(void *inFD, const char *buffer, int size) { NSData *data = [[NSData alloc] initWithBytes:buffer length:size]; [g_stderrRedirect performSelectorOnMainThread:@selector(forwardOutput:) withObject:data waitUntilDone:NO]; - [data release]; } return size; } @@ -101,7 +99,6 @@ int stderrwrite(void *inFD, const char *buffer, int size) if (![listeners containsObject:aListener]) { [listeners addObject:aListener]; - [aListener release]; } if ([listeners count] > 0) @@ -115,7 +112,6 @@ int stderrwrite(void *inFD, const char *buffer, int size) { if ([listeners containsObject:aListener]) { - [aListener retain]; [listeners removeObject:aListener]; } @@ -125,7 +121,6 @@ int stderrwrite(void *inFD, const char *buffer, int size) if ([listeners count] == 0) { [self stopRedirect]; - [self autorelease]; if (self == g_stdoutRedirect) g_stdoutRedirect = nil; @@ -160,15 +155,6 @@ int stderrwrite(void *inFD, const char *buffer, int size) } /** - * Frees all the listeners and deallocs the object. - */ -- (void)dealloc -{ - [listeners release]; - [super dealloc]; -} - -/** * Starts redirecting the stream by redirecting its output to function * @c stdoutwrite() or @c stderrwrite(). Old _write function is stored to * @c oldWriteFunc so it can be restored. @@ -205,7 +191,6 @@ int stderrwrite(void *inFD, const char *buffer, int size) if (string) { [listeners makeObjectsPerformSelector:forwardingSelector withObject:string]; - [string release]; } } |