Skip to content

Commit

Permalink
ui/dbus: Properly dispose touch/mouse dbus objects
Browse files Browse the repository at this point in the history
Fixes: 142ca62 ("ui: add a D-Bus display backend")
Fixes: de9f844 ("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>
  • Loading branch information
bilelmoussaoui authored and elmarco committed Sep 4, 2023
1 parent dd0439e commit cb6ccdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/dbus-console.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cb6ccdc

Please sign in to comment.