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 4d42838..2cdb485 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);