diff options
author | bamse16 <marius@marius.me.uk> | 2009-06-05 15:07:25 +0000 |
---|---|---|
committer | bamse16 <marius@marius.me.uk> | 2009-06-05 15:07:25 +0000 |
commit | 67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece (patch) | |
tree | 14dbf0a8861ade6a232dfe2d0fdfab0807375aa5 /Source/SPTableData.m | |
parent | b3d173a9bf9ade79a06202b5666b105936ef0dff (diff) | |
download | sequelpro-67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece.tar.gz sequelpro-67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece.tar.bz2 sequelpro-67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece.zip |
Fixed some memory leaks found using llvm/clang. There are still some to fix
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r-- | Source/SPTableData.m | 5 |
1 files changed, 1 insertions, 4 deletions
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"] ) { |