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> (cherry picked from commitcb6ccdc9ca
) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
e975434d62
commit
0175121c6c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user