mirror of
https://github.com/gnustep/libs-performance.git
synced 2025-02-19 01:51:01 +00:00
* 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:
parent
6eabd32ede
commit
4de059c229
2 changed files with 7 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue