aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-08-30 13:38:01 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-09-04 13:55:36 +0400
commit463c6b19c75313734e6e1b624d6b89dd8eb62516 (patch)
tree76d04a519e9a9a721e48e308c4194fc00fb8ed1a /ui
parentb97a76d0355f8fc3856de9ebd4f6929b51ba26fb (diff)
downloadqemu-463c6b19c75313734e6e1b624d6b89dd8eb62516.zip
qemu-463c6b19c75313734e6e1b624d6b89dd8eb62516.tar.gz
qemu-463c6b19c75313734e6e1b624d6b89dd8eb62516.tar.bz2
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 <marcandre.lureau@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Message-Id: <20230830093843.3531473-28-marcandre.lureau@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/console.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/console.c b/ui/console.c
index ffa68c3..3cd4c74 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