Fix delete_hw_event_data() to free the scheduled events

This commit is contained in:
Stephane Carrez 2000-11-27 19:53:35 +00:00
parent ce9bc8d1f1
commit 4e73b9c108
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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);
}