queue.c: remove queue_clear.
client code knows what objects is stored in the queue and its only 3 lines to do a simple free() on the items.
This commit is contained in:
parent
1f1e9f7764
commit
4a2665004e
4 changed files with 6 additions and 23 deletions
|
|
@ -224,6 +224,9 @@ void notify_exit() {
|
|||
rbtree_free(&tree);
|
||||
|
||||
if (event_queue) {
|
||||
notify_event *e;
|
||||
while(e = queue_dequeue(event_queue))
|
||||
notify_event_del(e);
|
||||
queue_destroy(event_queue);
|
||||
event_queue = NULL;
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue