diff options
Diffstat (limited to 'chardev/spice.c')
-rw-r--r-- | chardev/spice.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chardev/spice.c b/chardev/spice.c index 241e2b7..bf7ea1e 100644 --- a/chardev/spice.c +++ b/chardev/spice.c @@ -216,9 +216,7 @@ static void char_spice_finalize(Object *obj) vmc_unregister_interface(s); - if (s->next.le_prev) { - QLIST_REMOVE(s, next); - } + QLIST_SAFE_REMOVE(s, next); g_free((char *)s->sin.subtype); g_free((char *)s->sin.portname); |