diff options
author | stuconnolly <stuart02@gmail.com> | 2010-03-13 14:43:04 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-03-13 14:43:04 +0000 |
commit | f07531d1361e810a63a30f2e3b26313c18b3c302 (patch) | |
tree | 5502ffce3bbee9e6780eb5b56ce19babe2a199c3 /Source/SPTableRelations.m | |
parent | 710c28ff5d55ccb26b362d80e866d53d2a4583ad (diff) | |
download | sequelpro-f07531d1361e810a63a30f2e3b26313c18b3c302.tar.gz sequelpro-f07531d1361e810a63a30f2e3b26313c18b3c302.tar.bz2 sequelpro-f07531d1361e810a63a30f2e3b26313c18b3c302.zip |
Add support for printing the table triggers view as well some HTML generation performance improvements.
Diffstat (limited to 'Source/SPTableRelations.m')
-rw-r--r-- | Source/SPTableRelations.m | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/SPTableRelations.m b/Source/SPTableRelations.m index a88da5e7..7d8ef9e3 100644 --- a/Source/SPTableRelations.m +++ b/Source/SPTableRelations.m @@ -350,8 +350,7 @@ */ - (NSArray *)relationDataForPrinting { - NSMutableArray *headings = [NSMutableArray array]; - NSMutableArray *tempData = [NSMutableArray array]; + NSMutableArray *headings = [[NSMutableArray alloc] init]; NSMutableArray *data = [NSMutableArray array]; // Get the relations table view's columns @@ -361,11 +360,13 @@ } [data addObject:headings]; + + [headings release]; // Get the relation data for (NSDictionary *relation in relationData) { - NSMutableArray *temp = [NSMutableArray array]; + NSMutableArray *temp = [[NSMutableArray alloc] init]; [temp addObject:[relation objectForKey:@"name"]]; [temp addObject:[relation objectForKey:@"columns"]]; @@ -375,6 +376,8 @@ [temp addObject:([relation objectForKey:@"on_delete"]) ? [relation objectForKey:@"on_delete"] : @""]; [data addObject:temp]; + + [temp release]; } return data; |