diff options
author | stuconnolly <stuart02@gmail.com> | 2009-08-07 16:44:51 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-08-07 16:44:51 +0000 |
commit | 59c2bf0fe8329e2653c12a95e486fdfe8a373389 (patch) | |
tree | a4bc9b1b7c9ea28d5d87bf09354fc497c4909b39 /Frameworks | |
parent | 78a094cff7a98489de2594cda8c56f491b288e88 (diff) | |
download | sequelpro-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')
-rw-r--r-- | Frameworks/MCPKit/MCPFoundationKit/MCPResult.m | 7 |
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; } |