summaryrefslogtreecommitdiff
path: root/capplets/appearance
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2017-01-12 17:57:12 +0100
committermonsta <[email protected]>2017-01-27 10:58:13 +0300
commit7ed3a60d2ccc95012bcaf71baa604a064342c848 (patch)
tree490f7226ee4e9a3154f11565f0c2c742da50ece2 /capplets/appearance
parentd255df8819e1b2efcee996af33da8a66ed7d2b83 (diff)
downloadmate-control-center-7ed3a60d2ccc95012bcaf71baa604a064342c848.tar.bz2
mate-control-center-7ed3a60d2ccc95012bcaf71baa604a064342c848.tar.xz
Fix two memory leaks
Diffstat (limited to 'capplets/appearance')
-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 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;