([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:
Andrew McCallum 1995-10-30 01:05:15 +00:00
parent 74ae9f0d58
commit 62fc5daa65

View file

@ -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