let binding functions return a floating GVariant
authorRyan Lortie <desrt@desrt.ca>
Sat, 17 Apr 2010 05:27:00 +0000 (01:27 -0400)
committerRyan Lortie <desrt@desrt.ca>
Sat, 17 Apr 2010 05:27:00 +0000 (01:27 -0400)
gio/gsettings.c

index 4d42838b0968a00acf293bf88a073be9185a02bb..2cdb485fccda4ebf15927fe750688dcfb983c64a 100644 (file)
@@ -1218,7 +1218,7 @@ g_settings_binding_property_changed (GObject          *object,
     {
       g_settings_set_value (binding->settings,
                             binding->key,
-                            variant);
+                            g_variant_ref_sink (variant));
       g_variant_unref (variant);
     }
   g_value_unset (&value);