summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-rr-labeler.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-08 01:30:06 +0100
committerinfirit <[email protected]>2014-11-28 08:51:50 +0100
commit644beeec923fdf918512a4754fb4336e24550128 (patch)
tree0fa97ef9ac5295b667b23393f6d17da5034a6ffa /libmate-desktop/mate-rr-labeler.c
parent776c3d99650d1f969d92f127c310667bcede7231 (diff)
downloadmate-desktop-644beeec923fdf918512a4754fb4336e24550128.tar.bz2
mate-desktop-644beeec923fdf918512a4754fb4336e24550128.tar.xz
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 <[email protected]>
Diffstat (limited to 'libmate-desktop/mate-rr-labeler.c')
-rw-r--r--libmate-desktop/mate-rr-labeler.c2
1 files changed, 1 insertions, 1 deletions
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);