Skip to content

Fix dbus leaks

Andre Magalhaes requested to merge andrunko/dconf:fix-dbus-leaks into master

With recent changes made to GLib[1] invoking g_test_dbus_down() will fail after a timeout if the GDBusConnection object for the session bus leaks.

After running into some issues with the flatpak tests and the new glib we identified that the issue was actually that dconf was keeping a ref to the GDBusConnection objects that were cached by the dbus engines.

These changes attempt to fix the issues by dropping the GDBusConnection refs when the connection is closed.

[1] glib!963 (merged)

Edited by Andre Magalhaes

Merge request reports