From: Marc-André Lureau Date: Wed, 30 Aug 2023 09:38:01 +0000 (+0400) Subject: ui/console: free more QemuConsole resources X-Git-Tag: v8.2.0-rc0~142^2~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=463c6b19c75313734e6e1b624d6b89dd8eb62516;p=thirdparty%2Fqemu.git ui/console: free more QemuConsole resources This code path is probably not executed at this point, since console aren't being released. Signed-off-by: Marc-André Lureau Reviewed-by: Daniel P. Berrangé Message-Id: <20230830093843.3531473-28-marcandre.lureau@redhat.com> --- diff --git a/ui/console.c b/ui/console.c index ffa68c3a22d..3cd4c74eec3 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1337,8 +1337,11 @@ qemu_console_finalize(Object *obj) { QemuConsole *c = QEMU_CONSOLE(obj); + /* TODO: check this code path, and unregister from consoles */ + g_clear_pointer(&c->device, object_unref); + g_clear_pointer(&c->surface, qemu_free_displaysurface); + g_clear_pointer(&c->gl_unblock_timer, timer_free); g_clear_pointer(&c->ui_timer, timer_free); - /* TODO: should unregister from consoles and free itself */ } static void