summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-12-27 15:57:47 +0000
committerritsuka <[email protected]>2014-12-27 15:57:47 +0000
commit01c4bbf221e0815e9eb049b89f846b6a99a63f0a (patch)
tree17c20bc532a3a1c19c6c5320e9a3da85005eb17d /macosx
parent77d37037be2dc26e571fe10f57e52f2327db9b9c (diff)
MacGui: do not redirect nil to the log.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6662 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBOutputRedirect.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/macosx/HBOutputRedirect.m b/macosx/HBOutputRedirect.m
index 7239fe3cd..aa34b27d5 100644
--- a/macosx/HBOutputRedirect.m
+++ b/macosx/HBOutputRedirect.m
@@ -185,8 +185,11 @@ int stderrwrite(void *inFD, const char *buffer, int size)
- (void)forwardOutput:(NSData *)data
{
NSString *string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
- [listeners makeObjectsPerformSelector:forwardingSelector withObject:string];
- [string release];
+ if (string)
+ {
+ [listeners makeObjectsPerformSelector:forwardingSelector withObject:string];
+ [string release];
+ }
}
@end