diff options
author | Romain Bouvier <skunnyk@alteroot.org> | 2020-04-24 12:27:42 +0200 |
---|---|---|
committer | Romain Bouvier <skunnyk@alteroot.org> | 2020-04-24 12:32:17 +0200 |
commit | 3a419d5c16afcaadcb618df6f3cf4ad1cc3e0064 (patch) | |
tree | 0cf796f4b40aa40aad392c0070f8236d1bb42268 | |
parent | be28cc4d969e32cef872b4f8d57105ef70643e1d (diff) | |
download | xfconf-3a419d5c16afcaadcb618df6f3cf4ad1cc3e0064.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; } |