gnome-desktop3/0001-Fix-refcount-issues-for-config.patch
2011-02-04 03:27:14 +00:00

29 lines
1.1 KiB
Diff

From 8ceca629c2db2c8da0c7d8e391a68367c6c705d9 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Fri, 4 Feb 2011 03:23:09 +0000
Subject: [PATCH] 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.
---
libgnome-desktop/gnome-rr-labeler.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libgnome-desktop/gnome-rr-labeler.c b/libgnome-desktop/gnome-rr-labeler.c
index e477d36..a5db10b 100644
--- a/libgnome-desktop/gnome-rr-labeler.c
+++ b/libgnome-desktop/gnome-rr-labeler.c
@@ -171,7 +171,7 @@ gnome_rr_labeler_set_property (GObject *gobject, guint property_id, const GValue
switch (property_id) {
case PROP_CONFIG:
- self->priv->config = GNOME_RR_CONFIG (g_value_get_object (value));
+ self->priv->config = GNOME_RR_CONFIG (g_value_dup_object (value));
return;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (gobject, property_id, param_spec);
--
1.7.4