summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Gorodnichev <[email protected]>2014-11-27 15:24:09 +0100
committerinfirit <[email protected]>2014-11-27 15:26:18 +0100
commit8e72e3c97ba3c2b72f9dd7f392df88351271e534 (patch)
treefa1888a1f29480d3a8983a05123d26983ea3d8f8
parent06a00876a690711437d30f7183595734298cd603 (diff)
downloadmate-control-center-8e72e3c97ba3c2b72f9dd7f392df88351271e534.tar.bz2
mate-control-center-8e72e3c97ba3c2b72f9dd7f392df88351271e534.tar.xz
correctly destory enum_group
-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);