From 7ed3a60d2ccc95012bcaf71baa604a064342c848 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Thu, 12 Jan 2017 17:57:12 +0100 Subject: Fix two memory leaks --- capplets/appearance/appearance-style.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'capplets/appearance/appearance-style.c') diff --git a/capplets/appearance/appearance-style.c b/capplets/appearance/appearance-style.c index 5ccb0d87..aacde4ba 100644 --- a/capplets/appearance/appearance-style.c +++ b/capplets/appearance/appearance-style.c @@ -1013,9 +1013,9 @@ prepare_list (AppearanceData *data, GtkWidget *list, ThemeType type, GCallback c conv_data->thumbnail = thumbnail; /* set useful data for callbacks */ - g_object_set_data (G_OBJECT (list), THEME_DATA, conv_data); + g_object_set_data_full (G_OBJECT (list), THEME_DATA, conv_data, g_free); g_object_set_data (G_OBJECT (list), GSETTINGS_SETTINGS, settings); - g_object_set_data (G_OBJECT (list), GSETTINGS_KEY, g_strdup(key)); + g_object_set_data_full (G_OBJECT (list), GSETTINGS_KEY, g_strdup(key), g_free); /* select in treeview the theme set in gsettings */ GtkTreeModel *treemodel; -- cgit v1.2.1