aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-08-07 16:44:51 +0000
committerstuconnolly <stuart02@gmail.com>2009-08-07 16:44:51 +0000
commit59c2bf0fe8329e2653c12a95e486fdfe8a373389 (patch)
treea4bc9b1b7c9ea28d5d87bf09354fc497c4909b39 /Frameworks/MCPKit
parent78a094cff7a98489de2594cda8c56f491b288e88 (diff)
downloadsequelpro-59c2bf0fe8329e2653c12a95e486fdfe8a373389.tar.gz
sequelpro-59c2bf0fe8329e2653c12a95e486fdfe8a373389.tar.bz2
sequelpro-59c2bf0fe8329e2653c12a95e486fdfe8a373389.zip
- Fix a memory leak when filtering the server variables
- Fix a memory leak in MCPResult.m's stringFromCString: - Display the number of server variables being display when a filter is being applied
Diffstat (limited to 'Frameworks/MCPKit')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPResult.m7
1 files changed, 3 insertions, 4 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m b/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m
index 2fb15a88..333c8327 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m
@@ -1105,12 +1105,11 @@ const OUR_CHARSET our_charsets60[] =
return @"";
}
- theData = [NSData dataWithBytes:theCString length:(strlen(theCString))];
+ theData = [[NSData alloc] initWithBytes:theCString length:(strlen(theCString))];
theString = [[NSString alloc] initWithData:theData encoding:mEncoding];
- if (theString) {
- [theString autorelease];
- }
+ if (theData) [theData release];
+ if (theString) [theString autorelease];
return theString;
}