mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
fix deallocation error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28093 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f3788b611e
commit
6c75808696
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-03-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSNotificationQueue.m: Fix dealloc bug pointed out by
|
||||
Larry Campbell.
|
||||
|
||||
2009-03-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source\win32\GSFileHandle.m:
|
||||
|
|
|
@ -372,15 +372,15 @@ add_to_queue(NSNotificationQueueList *queue, NSNotification *notification,
|
|||
[NotificationQueueList unregisterQueue: self];
|
||||
|
||||
/*
|
||||
* release self from queues
|
||||
* release items from our queues
|
||||
*/
|
||||
for (item = _asapQueue->head; item; item=item->prev)
|
||||
while ((item = _asapQueue->head) != 0)
|
||||
{
|
||||
remove_from_queue(_asapQueue, item, _zone);
|
||||
}
|
||||
NSZoneFree(_zone, _asapQueue);
|
||||
|
||||
for (item = _idleQueue->head; item; item=item->prev)
|
||||
while ((item = _idleQueue->head) != 0)
|
||||
{
|
||||
remove_from_queue(_idleQueue, item, _zone);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue