mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 00:10:48 +00:00
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:
parent
8d7afe873e
commit
f62f56695d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue