diff options
author | Zhang Xianwei <[email protected]> | 2018-01-15 18:56:00 +0800 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-02-21 20:44:49 -0500 |
commit | c7697c9d6ac7df466063bf778d30801a99bc0cd7 (patch) | |
tree | 9c52d312ecde4e06262c39e380d4d4d1c727de58 | |
parent | 257b2363af758bb159e3265596dadc483833475d (diff) | |
download | mate-control-center-c7697c9d6ac7df466063bf778d30801a99bc0cd7.tar.bz2 mate-control-center-c7697c9d6ac7df466063bf778d30801a99bc0cd7.tar.xz |
theme-util.c: fix segfault on attempt to delete custom theme
fixes https://github.com/mate-desktop/mate-control-center/issues/334
Signed-off-by: Zhang Xianwei <[email protected]>
-rw-r--r-- | capplets/appearance/theme-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/capplets/appearance/theme-util.c b/capplets/appearance/theme-util.c index 96beb2c2..ec8a2dd8 100644 --- a/capplets/appearance/theme-util.c +++ b/capplets/appearance/theme-util.c @@ -99,8 +99,8 @@ gboolean theme_delete (const gchar *name, ThemeType type) break; case THEME_TYPE_META: - theme = (MateThemeCommonInfo *) mate_theme_info_find (name); - theme_dir = g_strdup (theme->path); + theme = (MateThemeCommonInfo *) mate_theme_meta_info_find (name); + theme_dir = g_path_get_dirname (theme->path); del_empty_parent = FALSE; break; |