Fix delete_hw_event_data() to free the scheduled events
This commit is contained in:
parent
ce9bc8d1f1
commit
4e73b9c108
@ -1,3 +1,7 @@
|
||||
2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
|
||||
|
||||
* hw-events.c (delete_hw_event_data): Remove the scheduled events.
|
||||
|
||||
2000-11-26 Stephane Carrez <Stephane.Carrez@worldnet.fr>
|
||||
|
||||
* dv-core.c (dv_core_attach_address_callback): Don't abort if
|
||||
|
@ -51,8 +51,9 @@ create_hw_event_data (struct hw *me)
|
||||
void
|
||||
delete_hw_event_data (struct hw *me)
|
||||
{
|
||||
if (me->events_of_hw != NULL)
|
||||
hw_abort (me, "stray events");
|
||||
/* Remove the scheduled event. */
|
||||
while (me->events_of_hw)
|
||||
hw_event_queue_deschedule (me, &me->events_of_hw->event);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user