From 4ea4fbc307c293e690f94063cacb772ede4b6bed Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 31 May 2010 23:03:02 -0400 Subject: [PATCH] Give |-connectInternal| an autorelease pool. --- Source/DebuggerConnection.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/DebuggerConnection.m b/Source/DebuggerConnection.m index a9bb2e8..739f198 100644 --- a/Source/DebuggerConnection.m +++ b/Source/DebuggerConnection.m @@ -225,6 +225,8 @@ void SocketAcceptCallback(CFSocketRef socket, */ - (void)connectInternal { + NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init]; + runLoop_ = [NSRunLoop currentRunLoop]; // Pass ourselves to the callback so we don't have to use ugly globals. @@ -271,6 +273,9 @@ void SocketAcceptCallback(CFSocketRef socket, CFRelease(source); [runLoop_ run]; + + [pool drain]; + [pool release]; } /** -- 2.22.5