From 13805614e6ed2131827bfa6c668b50a1b30da1e5 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 10 Feb 2010 01:32:05 +0000 Subject: Fix a number of memory leaks, and over-releases, as both a result of manual inspection of leaks and Clang static analysis. --- Frameworks/MCPKit/MCPFoundationKit/MCPResult.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Frameworks/MCPKit/MCPFoundationKit/MCPResult.m') diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m b/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m index 98f26b6c..4e3fef3a 100644 --- a/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m +++ b/Frameworks/MCPKit/MCPFoundationKit/MCPResult.m @@ -866,7 +866,7 @@ const OUR_CHARSET our_charsets60[] = - (NSUInteger)fetchFlagsForKey:(NSString *)key { NSUInteger theRet; - NSUInteger theNumFields, index; + NSUInteger index; MYSQL_FIELD *theField; if (mResult == NULL) { @@ -878,7 +878,6 @@ const OUR_CHARSET our_charsets60[] = [self fetchFieldNames]; } - theNumFields = [self numOfFields]; theField = mysql_fetch_fields(mResult); if ([mNames indexOfObject:key] == NSNotFound) { @@ -952,7 +951,7 @@ const OUR_CHARSET our_charsets60[] = - (BOOL)isBlobForKey:(NSString *)key { BOOL theRet; - NSUInteger theNumFields, index; + NSUInteger index; MYSQL_FIELD *theField; if (mResult == NULL) { @@ -964,7 +963,6 @@ const OUR_CHARSET our_charsets60[] = [self fetchFieldNames]; } - theNumFields = [self numOfFields]; theField = mysql_fetch_fields(mResult); if ([mNames indexOfObject:key] == NSNotFound) { -- cgit v1.2.3