aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-03-13 20:41:36 +0000
committerrowanbeentje <rowan@beent.je>2010-03-13 20:41:36 +0000
commitda87ee2564f73d7f578ffb08e5d03073ce49d694 (patch)
tree6b5a2e11798787e8614779c47611e506daff25b7 /Source/TableDocument.m
parent4b13d761590d65d2b294aaa6c17654edbd0a811e (diff)
downloadsequelpro-da87ee2564f73d7f578ffb08e5d03073ce49d694.tar.gz
sequelpro-da87ee2564f73d7f578ffb08e5d03073ce49d694.tar.bz2
sequelpro-da87ee2564f73d7f578ffb08e5d03073ce49d694.zip
- Fix some leaks and autoreleases after checking static analysis
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m10
1 files changed, 0 insertions, 10 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index d021ae5c..24636bf3 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -1755,8 +1755,6 @@
// Process result
if([selectedItems count] == 1) {
- message = @"";
-
NSDictionary *lastresult = [[theResult fetch2DResultAsType:MCPTypeDictionary] lastObject];
message = ([[lastresult objectForKey:@"Msg_type"] isEqualToString:@"status"]) ? NSLocalizedString(@"Check table successfully passed.",@"check table successfully passed message") : NSLocalizedString(@"Check table failed.", @"check table failed message");
@@ -1832,8 +1830,6 @@
// Process result
if([selectedItems count] == 1) {
- message = @"";
-
NSDictionary *lastresult = [[theResult fetch2DResultAsType:MCPTypeDictionary] lastObject];
message = ([[lastresult objectForKey:@"Msg_type"] isEqualToString:@"status"]) ? NSLocalizedString(@"Successfully analyzed table.",@"analyze table successfully passed message") : NSLocalizedString(@"Analyze table failed.", @"analyze table failed message");
@@ -1909,8 +1905,6 @@
// Process result
if([selectedItems count] == 1) {
- message = @"";
-
NSDictionary *lastresult = [[theResult fetch2DResultAsType:MCPTypeDictionary] lastObject];
message = ([[lastresult objectForKey:@"Msg_type"] isEqualToString:@"status"]) ? NSLocalizedString(@"Successfully optimized table.",@"optimize table successfully passed message") : NSLocalizedString(@"Optimize table failed.", @"optimize table failed message");
@@ -1985,8 +1979,6 @@
// Process result
if([selectedItems count] == 1) {
- message = @"";
-
NSDictionary *lastresult = [[theResult fetch2DResultAsType:MCPTypeDictionary] lastObject];
message = ([[lastresult objectForKey:@"Msg_type"] isEqualToString:@"status"]) ? NSLocalizedString(@"Successfully repaired table.",@"repair table successfully passed message") : NSLocalizedString(@"Repair table failed.", @"repair table failed message");
@@ -2061,8 +2053,6 @@
// Process result
if([selectedItems count] == 1) {
- message = @"";
-
NSDictionary *lastresult = [[theResult fetch2DResultAsType:MCPTypeDictionary] lastObject];
message = ([[lastresult objectForKey:@"Msg_type"] isEqualToString:@"status"]) ? NSLocalizedString(@"Successfully flushed table.",@"flush table successfully passed message") : NSLocalizedString(@"Flush table failed.", @"flush table failed message");