[gconf] Make backend_write consume the variant



commit 900c478b67372b1b116c67e10da41bdafd7e1ef3
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 14 12:17:51 2010 -0400

    Make backend_write consume the variant
    
    This is the expected behaviour.  See bug #621319.

 gsettings/gconfsettingsbackend.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gsettings/gconfsettingsbackend.c b/gsettings/gconfsettingsbackend.c
index 419b768..2592b91 100644
--- a/gsettings/gconfsettingsbackend.c
+++ b/gsettings/gconfsettingsbackend.c
@@ -665,7 +665,9 @@ gconf_settings_backend_write (GSettingsBackend *backend,
   GConfValue           *gconf_value;
   GError               *error;
 
+  g_variant_ref_sink (value);
   gconf_value = gconf_settings_backend_gvariant_to_gconf_value (value);
+  g_variant_unref (value);
   if (gconf_value == NULL)
     return FALSE;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]