From aaf452b0385bf4cd37b939a0dfc1375e191380f5 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 23 Jul 2009 00:11:37 +0000 Subject: - Fix a large memory leak in [MCPConnection prepareString] --- Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m') diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m index 2871070f..e3d26aeb 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m @@ -1163,7 +1163,7 @@ static void forcePingTimeout(int signalNumber) // theReturn = [self stringWithCString:theCEscBuffer]; free(theCEscBuffer); - return theReturn; + return [theReturn autorelease]; } /** -- cgit v1.2.3