aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2011-03-16 02:09:59 -0400
committerBrian Cully <github.20.shmit@spamgourmet.com>2011-03-16 02:09:59 -0400
commit4ae12ef1a1297d98d997d4a2ab829a6f1b04af9b (patch)
treed8282da5d6821cd3f5d5d01399dfd046ebbb8417
parent513324eb7bc0d93862e0efc238d3c3998f381670 (diff)
downloadmoxie-4ae12ef1a1297d98d997d4a2ab829a6f1b04af9b.tar.gz
moxie-4ae12ef1a1297d98d997d4a2ab829a6f1b04af9b.zip
Release pool when continuing from 0 length read
-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];