diff options
author | Ali Abdallah <ali@xfce.org> | 2017-07-24 13:49:29 +0200 |
---|---|---|
committer | Ali Abdallah <ali@xfce.org> | 2017-07-24 13:49:29 +0200 |
commit | 0a78b03788233768a7407376583c640a1c9ad8db (patch) | |
tree | 128319d90b35c5a20f3fe02d2edec386ea426750 /xfconf | |
parent | cae2d7f58e76bdf6b78cc087b9c5a0e8acb13136 (diff) | |
download | xfconf-0a78b03788233768a7407376583c640a1c9ad8db.tar.gz |
Flush dbus connection on xfconf_shutdown to flush pending
messages.
Diffstat (limited to 'xfconf')
-rw-r--r-- | xfconf/xfconf.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xfconf/xfconf.c b/xfconf/xfconf.c index c933582..fb2934d 100644 --- a/xfconf/xfconf.c +++ b/xfconf/xfconf.c @@ -154,6 +154,9 @@ xfconf_shutdown(void) return; } + /* Flush pending dbus calls */ + g_dbus_connection_flush_sync (gdbus, NULL, NULL); + _xfconf_channel_shutdown(); _xfconf_g_bindings_shutdown(); @@ -231,16 +234,16 @@ void xfconf_array_free(GPtrArray *arr) { guint i; - + if(!arr) return; - + for(i = 0; i < arr->len; ++i) { GValue *val = g_ptr_array_index(arr, i); g_value_unset(val); g_free(val); } - + g_ptr_array_free(arr, TRUE); } |