diff options
author | Romain Bouvier <skunnyk@alteroot.org> | 2020-04-24 12:27:42 +0200 |
---|---|---|
committer | Ali Abdallah <aabdallah@suse.de> | 2020-05-06 14:41:35 +0200 |
commit | 10eaaf8cfd94241bbb50c724a7c8d5a9900f146a (patch) | |
tree | 622418e5cdf27b72189114f639caa2a725c633dd | |
parent | 9bee4615ad6af1623525cc744403ba74c37c9739 (diff) | |
download | xfconf-10eaaf8cfd94241bbb50c724a7c8d5a9900f146a.tar.gz |
Bug #15960: Add some missing xfconf_shutdown() in xfconf-query
-rw-r--r-- | xfconf-query/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xfconf-query/main.c b/xfconf-query/main.c index 8f9148d..a622e81 100644 --- a/xfconf-query/main.c +++ b/xfconf-query/main.c @@ -356,7 +356,10 @@ main(int argc, char **argv) if(G_VALUE_HOLDS_BOOLEAN(&value)) { if(xfconf_channel_set_bool(channel, property_name, !g_value_get_boolean(&value))) + { + xfconf_shutdown (); return EXIT_SUCCESS; + } else xfconf_query_printerr(_("Failed to set property")); } @@ -414,6 +417,7 @@ main(int argc, char **argv) if(!prop_exists && (!type || !type[0])) { xfconf_query_printerr(_("When creating a new property, the value type must be specified")); + xfconf_shutdown (); return EXIT_FAILURE; } |