GNOME Bugzilla – Bug 669253
gsettings set buggy on array values
Last modified: 2012-02-02 15:56:16 UTC
Using glib 2.31.14, try "gsettings set org.gnome.gedit.preferences.encodings auto-detected "[]"" it prints a bunch of gvariant errors and a "can not parse as value of type `(null)'"
introduced here: http://git.gnome.org/browse/glib/commit/?id=8852d4e9a08e7fbc9df7fb99a54b112f5049ee19 'type' is used after free, causing the parser to have invalid behaviour.
Created attachment 206642 [details] [review] gsettings tool: fix a memory error 8852d4e9a08e7fbc9df7fb99a54b112f5049ee19 introduced a memory error by taking the type of a GVariant, freeing the GVariant and using the type after the free. This delays the free until after we've used the type.
Attachment 206642 [details] pushed as 387ed23 - gsettings tool: fix a memory error
thanks, the fix works for me