GSettings: Don't free value before using its type
authorRyan Lortie <desrt@desrt.ca>
Sun, 27 Jun 2010 14:11:45 +0000 (10:11 -0400)
committerRyan Lortie <desrt@desrt.ca>
Sun, 27 Jun 2010 14:12:59 +0000 (10:12 -0400)
commit795d2bf8cf13d03214af3eb857d235c2917f9945
tree5ec2d40b1d5bfe42569b9e13b666b7bedafa1561
parent87fd38bc4dd095d598ec375dbecb40d1393c3f8b
GSettings: Don't free value before using its type

Fix a bug where the type from g_variant_get_type() was used after
freeing the variant.  This works for base types (since they are cached
and live forever) but not for arrays (where the bug was first seen).
gio/gsettings-tool.c