https://src.bluestatic.org
/
macgdbp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a74b119
)
Give |-connectInternal| an autorelease pool.
author
Robert Sesek <rsesek@bluestatic.org>
Tue, 1 Jun 2010 03:03:02 +0000
(23:03 -0400)
committer
Robert Sesek <rsesek@bluestatic.org>
Tue, 1 Jun 2010 03:03:02 +0000
(23:03 -0400)
Source/DebuggerConnection.m
patch
|
blob
|
history
diff --git
a/Source/DebuggerConnection.m
b/Source/DebuggerConnection.m
index a9bb2e8fd986fd0216a37192b0f6b360546e69eb..739f198c887fafe4eb482f1ce8cce58979c4ec75 100644
(file)
--- 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];
}
/**