summaryrefslogtreecommitdiff
path: root/capplets
diff options
context:
space:
mode:
authorZhang Xianwei <[email protected]>2018-01-15 18:56:00 +0800
committerraveit65 <[email protected]>2018-03-13 10:07:33 +0100
commit7165e06b3ba4fc9abf7508d4f599a4ea744afdf8 (patch)
treee22258bacec6dc4d7f48f4d8d6c44e5d72c43cef /capplets
parent8adccf37fe94b15cc3c44591ec5f89ce8448f2b8 (diff)
downloadmate-control-center-7165e06b3ba4fc9abf7508d4f599a4ea744afdf8.tar.bz2
mate-control-center-7165e06b3ba4fc9abf7508d4f599a4ea744afdf8.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]>
Diffstat (limited to 'capplets')
-rw-r--r--capplets/appearance/theme-util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/capplets/appearance/theme-util.c b/capplets/appearance/theme-util.c
index 5f7b6c40..74b4f497 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;