From 644beeec923fdf918512a4754fb4336e24550128 Mon Sep 17 00:00:00 2001 From: infirit Date: Sat, 8 Nov 2014 01:30:06 +0100 Subject: Fix refcount issues for ->config If the GnomeRRLabeler object is going to be unref'ing the config object, then it better keeps its own reference to it, otherwise it could cause problems when destroyed and re-created. Based on gnome-desktop commit: 8ceca629c2db2c8da0c7d8e391a68367c6c705d9 From: Bastien Nocera --- libmate-desktop/mate-rr-labeler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmate-desktop') diff --git a/libmate-desktop/mate-rr-labeler.c b/libmate-desktop/mate-rr-labeler.c index f7e666e..d498520 100644 --- a/libmate-desktop/mate-rr-labeler.c +++ b/libmate-desktop/mate-rr-labeler.c @@ -175,7 +175,7 @@ mate_rr_labeler_set_property (GObject *gobject, guint property_id, const GValue switch (property_id) { case PROP_CONFIG: - self->priv->config = MATE_RR_CONFIG (g_value_get_object (value)); + self->priv->config = MATE_RR_CONFIG (g_value_dup_object (value)); return; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, property_id, param_spec); -- cgit v1.2.1