From 01c4bbf221e0815e9eb049b89f846b6a99a63f0a Mon Sep 17 00:00:00 2001 From: ritsuka Date: Sat, 27 Dec 2014 15:57:47 +0000 Subject: MacGui: do not redirect nil to the log. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6662 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBOutputRedirect.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'macosx/HBOutputRedirect.m') 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 -- cgit v1.2.3