Autorelease copy values when adding during NSContentValuesBinding option processing

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@36195 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Marcian Lytwyn 2013-02-24 00:32:45 +00:00
parent 8d7afe873e
commit f62f56695d

View file

@ -579,7 +579,7 @@ this to return nil to indicate that we have no context menu.
NSInteger index = 0;
[self removeAllItems];
for (index = 0; index < [array count]; ++index)
[self insertItemWithTitle:[[array objectAtIndex: index] copy] atIndex:index];
[self insertItemWithTitle:AUTORELEASE([[array objectAtIndex: index] copy]) atIndex:index];
}
else
{