mirror of
https://github.com/gnustep/libs-performance.git
synced 2025-02-23 11:51:20 +00:00
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:
parent
877455a921
commit
02c56e94f4
2 changed files with 6 additions and 12 deletions
|
@ -59,6 +59,10 @@ typedef unsigned int NSUInteger;
|
|||
*/
|
||||
- (id) initCircular;
|
||||
|
||||
/** Return the item in the link.
|
||||
*/
|
||||
- (NSObject*) item;
|
||||
|
||||
/** Return the next item in the list containing the receiver,
|
||||
* or nil if there are no more items.
|
||||
*/
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- (id) item
|
||||
- (NSObject*) item
|
||||
{
|
||||
return item;
|
||||
}
|
||||
|
@ -119,17 +119,7 @@
|
|||
|
||||
- (void) dealloc
|
||||
{
|
||||
count = 0;
|
||||
tail = nil;
|
||||
while (nil != head)
|
||||
{
|
||||
GSListLink *link = head;
|
||||
|
||||
head = link->next;
|
||||
head->next = head->previous = nil;
|
||||
head->owner = nil;
|
||||
[head release];
|
||||
}
|
||||
[self empty];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue