From 67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece Mon Sep 17 00:00:00 2001 From: bamse16 Date: Fri, 5 Jun 2009 15:07:25 +0000 Subject: Fixed some memory leaks found using llvm/clang. There are still some to fix --- Source/SPTableData.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Source/SPTableData.m') diff --git a/Source/SPTableData.m b/Source/SPTableData.m index ebb03a71..d01dd4cd 100644 --- a/Source/SPTableData.m +++ b/Source/SPTableData.m @@ -445,11 +445,9 @@ if( [[parts objectAtIndex:nextOffs+1] hasPrefix:@"SET"] ) { [constraintDetails setObject:@"SET NULL" forKey:@"update"]; - nextOffs = 13; } else if( [[parts objectAtIndex:nextOffs+1] hasPrefix:@"NO"] ) { [constraintDetails setObject:@"NO ACTION" forKey:@"update"]; - nextOffs = 13; } else { [constraintDetails setObject:[parts objectAtIndex:nextOffs+1] forKey:@"update"]; @@ -460,11 +458,9 @@ if( [[parts objectAtIndex:nextOffs+1] hasPrefix:@"SET"] ) { [constraintDetails setObject:@"SET NULL" forKey:@"delete"]; - nextOffs = 13; } else if( [[parts objectAtIndex:nextOffs+1] hasPrefix:@"NO"] ) { [constraintDetails setObject:@"NO ACTION" forKey:@"delete"]; - nextOffs = 13; } else { [constraintDetails setObject:[parts objectAtIndex:nextOffs+1] forKey:@"delete"]; @@ -472,6 +468,7 @@ } } [constraints addObject:constraintDetails]; + [constraintDetails release]; } // primary key else if( [[parts objectAtIndex:0] hasPrefix:@"PRIMARY"] ) { -- cgit v1.2.3