aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableRelations.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPTableRelations.m')
-rw-r--r--Source/SPTableRelations.m9
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;