summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-03 00:15:39 +0100
committermonsta <[email protected]>2020-02-13 13:54:07 +0300
commit19cdd5605af54a6d588ebe9d2a68d4c0f64845a6 (patch)
treee4396ba1d133cb5d35f5cff45dc9076e6b50a67d
parent055a380569d193977fd4d070801997c8e1809b8f (diff)
downloadmate-control-center-19cdd5605af54a6d588ebe9d2a68d4c0f64845a6.tar.bz2
mate-control-center-19cdd5605af54a6d588ebe9d2a68d4c0f64845a6.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 54ae3aea..8596aa85 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)