From 4ae12ef1a1297d98d997d4a2ab829a6f1b04af9b Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Wed, 16 Mar 2011 02:09:59 -0400 Subject: Release pool when continuing from 0 length read --- LispREPLController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; -- cgit v1.2.3