fix missing method in header and stupid deallocation error.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/performance/trunk@35997 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2013-01-18 18:29:36 +00:00
parent 877455a921
commit 02c56e94f4
2 changed files with 6 additions and 12 deletions

View file

@ -59,6 +59,10 @@ typedef unsigned int NSUInteger;
*/ */
- (id) initCircular; - (id) initCircular;
/** Return the item in the link.
*/
- (NSObject*) item;
/** Return the next item in the list containing the receiver, /** Return the next item in the list containing the receiver,
* or nil if there are no more items. * or nil if there are no more items.
*/ */

View file

@ -43,7 +43,7 @@
return self; return self;
} }
- (id) item - (NSObject*) item
{ {
return item; return item;
} }
@ -119,17 +119,7 @@
- (void) dealloc - (void) dealloc
{ {
count = 0; [self empty];
tail = nil;
while (nil != head)
{
GSListLink *link = head;
head = link->next;
head->next = head->previous = nil;
head->owner = nil;
[head release];
}
[super dealloc]; [super dealloc];
} }