Commit e81620d0 authored by A. Wilcox's avatar A. Wilcox

iUI: ItemVC: Use autoreleased arrays for tags/materials.

parent 2c8d55b9
......@@ -2455,9 +2455,8 @@ extern const char *site_names[3];
if((tags = [changedKeys objectForKey:kItemPropertyTags]) == nil && etsy != nil)
{
tags = [[self tagsForEtsyItem:etsy] mutableCopy];
tags = [NSMutableArray arrayWithArray:[self tagsForEtsyItem:etsy]];
[changedKeys setObject:tags forKey:kItemPropertyTags];
[tags release];
}
WTPrettyListViewController *tagList = [[WTPrettyListViewController alloc] initWithList:tags];
......@@ -2482,9 +2481,8 @@ extern const char *site_names[3];
if((materials = [changedKeys objectForKey:kItemPropertyMaterials]) == nil && etsy != nil)
{
materials = [[self materialsForEtsyItem:etsy] mutableCopy];
materials = [NSMutableArray arrayWithArray:[self materialsForEtsyItem:etsy]];
[changedKeys setObject:materials forKey:kItemPropertyMaterials];
[materials release];
}
WTPrettyListViewController *materialList = [[WTPrettyListViewController alloc] initWithList:materials];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment