summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MLKListenerController.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/MLKListenerController.m b/MLKListenerController.m
index f472448..ef46ff8 100644
--- a/MLKListenerController.m
+++ b/MLKListenerController.m
@@ -92,7 +92,7 @@
[NSThread detachNewThreadSelector:@selector(evalObject:)
toTarget:self
- withObject:object];
+ withObject:nullify(object)];
}
- (void)evalObject:(id)object
@@ -101,6 +101,8 @@
NSDictionary *attrs;
NSMutableAttributedString *text = [outputTextView textStorage];
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+
+ object = denullify(object);
[statusText setStringValue:@"Compiling and executing."];
NS_DURING