]> git.proxmox.com Git - qemu.git/blobdiff - async.c
aio / timers: Add QEMUTimerListGroup to AioContext
[qemu.git] / async.c
diff --git a/async.c b/async.c
index 9791d8e6a1e2c7ea1e49fc6d91511ac36849675c..cd4a4898ed5d998d45ed69b9613ad928ce419514 100644 (file)
--- a/async.c
+++ b/async.c
@@ -205,6 +205,7 @@ aio_ctx_finalize(GSource     *source)
     event_notifier_cleanup(&ctx->notifier);
     qemu_mutex_destroy(&ctx->bh_lock);
     g_array_free(ctx->pollfds, TRUE);
+    timerlistgroup_deinit(&ctx->tlg);
 }
 
 static GSourceFuncs aio_source_funcs = {
@@ -244,6 +245,7 @@ AioContext *aio_context_new(void)
     aio_set_event_notifier(ctx, &ctx->notifier, 
                            (EventNotifierHandler *)
                            event_notifier_test_and_clear);
+    timerlistgroup_init(&ctx->tlg);
 
     return ctx;
 }