aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
authorbamse16 <marius@marius.me.uk>2009-06-05 15:07:25 +0000
committerbamse16 <marius@marius.me.uk>2009-06-05 15:07:25 +0000
commit67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece (patch)
tree14dbf0a8861ade6a232dfe2d0fdfab0807375aa5 /Source/SPTableData.m
parentb3d173a9bf9ade79a06202b5666b105936ef0dff (diff)
downloadsequelpro-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.m5
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"] ) {