* GSMutableSkipArray.m: Fix bug when deallocating an empty list.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/performance/trunk@24076 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Matt Rice 2006-11-12 07:30:09 +00:00
parent 6eabd32ede
commit 4de059c229
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2006-11-11 Matt Rice <ratmice@gmail.com>
* GSMutableSkipArray.m: Fix bug when deallocating an empty list.
2006-11-11 Richard Frith-Macdonald <rfm@gnu.org>
* GSThroughput.h: New ([add:duration:]) method.

View file

@ -164,13 +164,14 @@ static Class concreteClass = 0;
GSISLNode p,q;
p = l->header->forward[0].next;
do
while (p != GSISLNil)
{
q = p->forward[0].next;
RELEASE(p->value);
NSZoneFree(l->zone,p);
p = q;
} while (p != GSISLNil);
}
NSZoneFree(l->zone, l->header);
NSZoneFree(l->zone, l);
[super dealloc];