summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2017-01-12 17:57:12 +0100
committermonsta <[email protected]>2017-01-27 11:49:36 +0400
commit28d95d764e6b5c95b1a0e5556cc183e28dd671ae (patch)
tree9814213b3c5c104da3bb6eb4904005ae55bc8560
parent1a2b8e9f6b96cb2d6b768e901a126ff770b4b8bf (diff)
downloadmate-control-center-28d95d764e6b5c95b1a0e5556cc183e28dd671ae.tar.bz2
mate-control-center-28d95d764e6b5c95b1a0e5556cc183e28dd671ae.tar.xz
Fix two memory leaks
-rw-r--r--capplets/appearance/appearance-style.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capplets/appearance/appearance-style.c b/capplets/appearance/appearance-style.c
index 8b7bd80e..afd892b6 100644
--- a/capplets/appearance/appearance-style.c
+++ b/capplets/appearance/appearance-style.c
@@ -955,9 +955,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;