Bastien Nocera 8bdd024
From 8ceca629c2db2c8da0c7d8e391a68367c6c705d9 Mon Sep 17 00:00:00 2001
Bastien Nocera 8bdd024
From: Bastien Nocera <hadess@hadess.net>
Bastien Nocera 8bdd024
Date: Fri, 4 Feb 2011 03:23:09 +0000
Bastien Nocera 8bdd024
Subject: [PATCH] Fix refcount issues for ->config
Bastien Nocera 8bdd024
Bastien Nocera 8bdd024
If the GnomeRRLabeler object is going to be unref'ing the
Bastien Nocera 8bdd024
config object, then it better keeps its own reference to it, otherwise
Bastien Nocera 8bdd024
it could cause problems when destroyed and re-created.
Bastien Nocera 8bdd024
---
Bastien Nocera 8bdd024
 libgnome-desktop/gnome-rr-labeler.c |    2 +-
Bastien Nocera 8bdd024
 1 files changed, 1 insertions(+), 1 deletions(-)
Bastien Nocera 8bdd024
Bastien Nocera 8bdd024
diff --git a/libgnome-desktop/gnome-rr-labeler.c b/libgnome-desktop/gnome-rr-labeler.c
Bastien Nocera 8bdd024
index e477d36..a5db10b 100644
Bastien Nocera 8bdd024
--- a/libgnome-desktop/gnome-rr-labeler.c
Bastien Nocera 8bdd024
+++ b/libgnome-desktop/gnome-rr-labeler.c
Bastien Nocera 8bdd024
@@ -171,7 +171,7 @@ gnome_rr_labeler_set_property (GObject *gobject, guint property_id, const GValue
Bastien Nocera 8bdd024
 
Bastien Nocera 8bdd024
 	switch (property_id) {
Bastien Nocera 8bdd024
 	case PROP_CONFIG:
Bastien Nocera 8bdd024
-		self->priv->config = GNOME_RR_CONFIG (g_value_get_object (value));
Bastien Nocera 8bdd024
+		self->priv->config = GNOME_RR_CONFIG (g_value_dup_object (value));
Bastien Nocera 8bdd024
 		return;
Bastien Nocera 8bdd024
 	default:
Bastien Nocera 8bdd024
 		G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, property_id, param_spec);
Bastien Nocera 8bdd024
-- 
Bastien Nocera 8bdd024
1.7.4
Bastien Nocera 8bdd024