aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--LispREPLController.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/LispREPLController.m b/LispREPLController.m
index acf6178..b72cc53 100644
--- a/LispREPLController.m
+++ b/LispREPLController.m
@@ -605,8 +605,10 @@ enum repl_lock_condition { NO_DATA, HAS_DATA };
rp = [[NSAutoreleasePool alloc] init];
inputData = [stdoutInput availableData];
- if ([inputData length] == 0)
+ if ([inputData length] == 0) {
+ [rp release];
continue;
+ }
[theREPLUpdateLock lock];
[theUpdates addObject: inputData];
[theREPLUpdateLock unlock];