fixed allocation of NSMutableArray

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28284 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2009-05-14 23:21:05 +00:00
parent 7f6ee7d9fd
commit 448d898622
2 changed files with 5 additions and 1 deletions

View file

@ -3456,7 +3456,7 @@ struct _DelegateWrapper
- (NSArray *) orderedWindows
{
NSArray *arr = GSOrderedWindows();
NSMutableArray *ret = [[NSArray alloc] initWithCapacity:[arr count]];
NSMutableArray *ret = [[NSMutableArray alloc] initWithCapacity:[arr count]];
NSEnumerator *iter = [arr objectEnumerator];
id win;
while ((win = [iter nextObject]))