summaryrefslogtreecommitdiff
path: root/capplets/appearance/appearance-font.c
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/appearance/appearance-font.c')
-rw-r--r--capplets/appearance/appearance-font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capplets/appearance/appearance-font.c b/capplets/appearance/appearance-font.c
index 1b1d0d06..2c2cd072 100644
--- a/capplets/appearance/appearance-font.c
+++ b/capplets/appearance/appearance-font.c
@@ -510,7 +510,7 @@ enum_group_create (GSettings *settings,
group = g_new (EnumGroup, 1);
- group->settings = settings;
+ group->settings = g_object_ref (settings);
group->settings_key = g_strdup (settings_key);
group->items = NULL;
@@ -548,8 +548,8 @@ enum_group_create (GSettings *settings,
static void
enum_group_destroy (EnumGroup *group)
{
- group->settings = NULL;
g_signal_handler_disconnect (group->settings, group->settings_signal_id);
+ g_clear_object (&group->settings);
group->settings_signal_id = 0;
g_free (group->settings_key);