summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2010-08-05 13:41:11 +0200
committerTomas Bzatek <tbzatek@redhat.com>2010-08-05 13:41:11 +0200
commit814e1d55b15f02b07b0c27d8d13f17ae6a2a6d71 (patch)
treecf8163d97667ede2f68ee81569d59bec4cadca13
parent992ff0c4f54ca62863a3dbf5fdfc7efcb165d389 (diff)
downloadgconf-814e1d55b15f02b07b0c27d8d13f17ae6a2a6d71.tar.gz
[gsettings] Sink references of newly created variant objects
See bug 625591 for details.
-rw-r--r--gsettings/gsettings-data-convert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gsettings/gsettings-data-convert.c b/gsettings/gsettings-data-convert.c
index aa92710c..4effcb5b 100644
--- a/gsettings/gsettings-data-convert.c
+++ b/gsettings/gsettings-data-convert.c
@@ -190,6 +190,7 @@ handle_file (const gchar *filename)
g_variant_builder_add (builder, "s", s);
}
v = g_variant_new ("as", builder);
+ g_variant_ref_sink (v);
if (dry_run)
{
@@ -215,6 +216,7 @@ handle_file (const gchar *filename)
g_variant_builder_add (builder, "i", ii);
}
v = g_variant_new ("ai", builder);
+ g_variant_ref_sink (v);
if (dry_run)
{