diff options
author | Bilal Elmoussaoui <belmouss@redhat.com> | 2023-09-01 14:45:07 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-09-04 15:14:44 +0400 |
commit | cb6ccdc9ca705cd8c3ef50e51c16a3732c2fa734 (patch) | |
tree | 86d091411973c702c0a5deeb5dd2c130523cd977 /ui | |
parent | dd0439e1496ad326dcaa7dc67f91f2e6f6c4930b (diff) |
ui/dbus: Properly dispose touch/mouse dbus objects
Fixes: 142ca628a7 ("ui: add a D-Bus display backend")
Fixes: de9f844ce2 ("ui/dbus: Expose a touch device interface")
Signed-off-by: Bilal Elmoussaoui <belmouss@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230901124507.94087-1-belmouss@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/dbus-console.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/dbus-console.c b/ui/dbus-console.c index e19774f985..36f7349585 100644 --- a/ui/dbus-console.c +++ b/ui/dbus-console.c @@ -150,6 +150,8 @@ dbus_display_console_dispose(GObject *object) DBusDisplayConsole *ddc = DBUS_DISPLAY_CONSOLE(object); unregister_displaychangelistener(&ddc->dcl); + g_clear_object(&ddc->iface_touch); + g_clear_object(&ddc->iface_mouse); g_clear_object(&ddc->iface_kbd); g_clear_object(&ddc->iface); g_clear_pointer(&ddc->listeners, g_hash_table_unref); |