gsettings tool: fix a memory error
authorRyan Lortie <desrt@desrt.ca>
Thu, 2 Feb 2012 15:48:11 +0000 (10:48 -0500)
committerRyan Lortie <desrt@desrt.ca>
Thu, 2 Feb 2012 15:53:50 +0000 (10:53 -0500)
commit387ed239e236cad1c3a54d08a34194c36bb59dba
tree0b50307709ba083035304ad490cee49e981a63a1
parent552b815365649521379c60b672f608a40a8a5f44
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.

https://bugzilla.gnome.org/show_bug.cgi?id=669253
gio/gsettings-tool.c