mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([NSArray -objectEnumerator]): Autorelease it.
([NSArray -reverseObjectEnumerator]): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@648 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
74ae9f0d58
commit
62fc5daa65
1 changed files with 4 additions and 2 deletions
|
@ -324,12 +324,14 @@ static Class NSMutableArray_concrete_class;
|
|||
|
||||
- (NSEnumerator*) objectEnumerator
|
||||
{
|
||||
return [[NSArrayEnumerator alloc] initWithArray:self];
|
||||
return [[[NSArrayEnumerator alloc] initWithArray:self]
|
||||
autorelease];
|
||||
}
|
||||
|
||||
- (NSEnumerator*) reverseObjectEnumerator
|
||||
{
|
||||
return [[NSArrayEnumeratorReverse alloc] initWithArray:self];
|
||||
return [[[NSArrayEnumeratorReverse alloc] initWithArray:self]
|
||||
autorelease];
|
||||
}
|
||||
|
||||
- (NSString*) description
|
||||
|
|
Loading…
Reference in a new issue