diff options
author | Andre Moreira Magalhaes <andre@endlessm.com> | 2019-07-23 20:33:19 +0000 |
---|---|---|
committer | Andre Moreira Magalhaes <andre@endlessm.com> | 2019-08-07 21:28:47 -0300 |
commit | a32e51142140e3886b50ba7348783d867e900d0b (patch) | |
tree | f3cab782b6871bb7c6e2086df40de68fb1984577 /gdbus/meson.build | |
parent | 6fbf07188542806f126bbee4f15bd0eb95057843 (diff) | |
download | dconf-a32e51142140e3886b50ba7348783d867e900d0b.tar.gz |
gdbus: Unref cached GDBusConnection objects when the connection is closed
This change fixes the dbus-leak tests by dropping the cached
GDBusConnection objects references when the bus connection is closed.
The issue was introduced with recent changes made to GLib[1]
where invoking g_test_dbus_down() will fail after a
timeout if the GDBusConnection object for the session bus leaks.
Given g_test_dbus_down() will first close the connection before checking
for leaks unreffing the object when the connection is closed should fix
the issue.
[1] https://gitlab.gnome.org/GNOME/glib/merge_requests/963
Signed-off-by: Andre Moreira Magalhaes <andre@endlessm.com>
Diffstat (limited to 'gdbus/meson.build')
-rw-r--r-- | gdbus/meson.build | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gdbus/meson.build b/gdbus/meson.build index 4fbf3ec..aad517a 100644 --- a/gdbus/meson.build +++ b/gdbus/meson.build @@ -1,6 +1,14 @@ +libdconf_gdbus_common_sources = files( + 'dconf-gdbus-common.c', +) + +libdconf_gdbus_thread_sources = libdconf_gdbus_common_sources + files( + 'dconf-gdbus-thread.c', +) + libdconf_gdbus_thread = static_library( 'dconf-gdbus-thread', - sources: 'dconf-gdbus-thread.c', + sources: libdconf_gdbus_thread_sources, include_directories: top_inc, dependencies: libdconf_engine_dep, c_args: dconf_c_args, @@ -12,9 +20,13 @@ libdconf_gdbus_thread_dep = declare_dependency( link_with: libdconf_gdbus_thread, ) +libdconf_gdbus_filter_sources = libdconf_gdbus_common_sources + files( + 'dconf-gdbus-filter.c', +) + libdconf_gdbus_filter = static_library( 'dconf-gdbus-filter', - sources: 'dconf-gdbus-filter.c', + sources: libdconf_gdbus_filter_sources, include_directories: top_inc, dependencies: libdconf_engine_dep, c_args: dconf_c_args, |