From 711059b747f0ba90a4b46fa27de6fee798a21ed5 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 31 May 2010 22:37:58 -0400 Subject: [PATCH] Remove objects from the |callTable_| after handing the response. --- Source/DebuggerProcessor.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/DebuggerProcessor.m b/Source/DebuggerProcessor.m index 530dec1..32eea93 100644 --- a/Source/DebuggerProcessor.m +++ b/Source/DebuggerProcessor.m @@ -216,12 +216,14 @@ - (void)handleResponse:(NSXMLDocument*)response { NSInteger transactionID = [connection_ transactionIDFromResponse:response]; - NSString* callbackStr = [callTable_ objectForKey:[NSNumber numberWithInt:transactionID]]; + NSNumber* key = [NSNumber numberWithInt:transactionID]; + NSString* callbackStr = [callTable_ objectForKey:key]; if (callbackStr) { SEL callback = NSSelectorFromString(callbackStr); [self performSelector:callback withObject:response]; } + [callTable_ removeObjectForKey:key]; } /** -- 2.43.5