summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-03 00:15:39 +0100
committerraveit65 <[email protected]>2020-02-06 14:49:18 +0100
commit032afd202dd74827ae195c25f7a47d91fb002575 (patch)
tree6ae9c0ba4e40abda1063884e1bb4c07b0d31952d
parent110703fa7e05ca4b8c5c6b1677c44d43f6e9a3bb (diff)
downloadmate-control-center-032afd202dd74827ae195c25f7a47d91fb002575.tar.bz2
mate-control-center-032afd202dd74827ae195c25f7a47d91fb002575.tar.xz
mate-theme-info: fix memory leak
-rw-r--r--capplets/common/mate-theme-info.c34
1 files changed, 18 insertions, 16 deletions
diff --git a/capplets/common/mate-theme-info.c b/capplets/common/mate-theme-info.c
index a738f0b7..e201492e 100644
--- a/capplets/common/mate-theme-info.c
+++ b/capplets/common/mate-theme-info.c
@@ -1546,22 +1546,24 @@ MateThemeMetaInfo* mate_theme_meta_info_new(void)
void mate_theme_meta_info_free(MateThemeMetaInfo* meta_theme_info)
{
- g_free(meta_theme_info->path);
- g_free(meta_theme_info->readable_name);
- g_free(meta_theme_info->name);
- g_free(meta_theme_info->comment);
- g_free(meta_theme_info->application_font);
- g_free(meta_theme_info->documents_font);
- g_free(meta_theme_info->desktop_font);
- g_free(meta_theme_info->windowtitle_font);
- g_free(meta_theme_info->monospace_font);
- g_free(meta_theme_info->background_image);
- g_free(meta_theme_info->gtk_theme_name);
- g_free(meta_theme_info->gtk_color_scheme);
- g_free(meta_theme_info->icon_theme_name);
- g_free(meta_theme_info->marco_theme_name);
- g_free(meta_theme_info->notification_theme_name);
- g_free(meta_theme_info);
+ g_free (meta_theme_info->application_font);
+ g_free (meta_theme_info->background_image);
+ g_free (meta_theme_info->comment);
+ g_free (meta_theme_info->cursor_theme_name);
+ g_free (meta_theme_info->desktop_font);
+ g_free (meta_theme_info->documents_font);
+ g_free (meta_theme_info->gtk_color_scheme);
+ g_free (meta_theme_info->gtk_theme_name);
+ g_free (meta_theme_info->icon_file);
+ g_free (meta_theme_info->icon_theme_name);
+ g_free (meta_theme_info->marco_theme_name);
+ g_free (meta_theme_info->monospace_font);
+ g_free (meta_theme_info->name);
+ g_free (meta_theme_info->notification_theme_name);
+ g_free (meta_theme_info->path);
+ g_free (meta_theme_info->sound_theme_name);
+ g_free (meta_theme_info->windowtitle_font);
+ g_free (meta_theme_info);
}
gboolean mate_theme_meta_info_validate(const MateThemeMetaInfo* info, GError** error)