aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-05-20 15:20:23 +0000
committerBibiko <bibiko@eva.mpg.de>2009-05-20 15:20:23 +0000
commit86a11d827706093e0aeaa9c6922a0f1cb73e2008 (patch)
treea522494793096c3f56ed391788b964a6460786d7
parent889c5adf99461164e311dea4fd3676663b9273da (diff)
downloadsequelpro-86a11d827706093e0aeaa9c6922a0f1cb73e2008.tar.gz
sequelpro-86a11d827706093e0aeaa9c6922a0f1cb73e2008.tar.bz2
sequelpro-86a11d827706093e0aeaa9c6922a0f1cb73e2008.zip
• fixed: serverVersionString retained and released
-rw-r--r--Source/CMMCPConnection.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CMMCPConnection.m b/Source/CMMCPConnection.m
index 6e00357c..ab9bf6e6 100644
--- a/Source/CMMCPConnection.m
+++ b/Source/CMMCPConnection.m
@@ -42,8 +42,7 @@ static void forcePingTimeout(int signalNumber);
theResult = [self queryString:@"SHOW VARIABLES WHERE Variable_name = 'version'"];
if ([theResult numOfRows]) {
[theResult dataSeek:0];
- serverVersionString = [NSString stringWithString:[[theResult fetchRowAsArray] objectAtIndex:1]];
- [theResult dataSeek:[theResult numOfRows]];
+ serverVersionString = [[NSString stringWithString:[[theResult fetchRowAsArray] objectAtIndex:1]] retain];
}
}
}
@@ -146,8 +145,9 @@ static void forcePingTimeout(int signalNumber);
if( serverVersionString != nil ) {
serverVersionString = nil;
+ [serverVersionString release];
}
-
+
[self stopKeepAliveTimer];
}