Commit 744ac129 authored by ritsuka's avatar ritsuka

[0.10.x] MacGui: do not redirect null strings to the activity log.

git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.10.x@7289 b64f7644-9d1e-0410-96f1-a4d463321fa5
parent 4582ca73
......@@ -185,7 +185,10 @@ 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];
if (string)
{
[listeners makeObjectsPerformSelector:forwardingSelector withObject:string];
}
[string release];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment