Give |-connectInternal| an autorelease pool.
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 1 Jun 2010 03:03:02 +0000 (23:03 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 1 Jun 2010 03:03:02 +0000 (23:03 -0400)
Source/DebuggerConnection.m

index a9bb2e8fd986fd0216a37192b0f6b360546e69eb..739f198c887fafe4eb482f1ce8cce58979c4ec75 100644 (file)
@@ -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];
 }
 
 /**