Skip to content

Commit 7165e06

Browse files
zhangxianwei8raveit65
authored andcommitted
theme-util.c: fix segfault on attempt to delete custom theme
fixes #334 Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
1 parent 8adccf3 commit 7165e06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

capplets/appearance/theme-util.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ gboolean theme_delete (const gchar *name, ThemeType type)
9999
break;
100100

101101
case THEME_TYPE_META:
102-
theme = (MateThemeCommonInfo *) mate_theme_info_find (name);
103-
theme_dir = g_strdup (theme->path);
102+
theme = (MateThemeCommonInfo *) mate_theme_meta_info_find (name);
103+
theme_dir = g_path_get_dirname (theme->path);
104104
del_empty_parent = FALSE;
105105
break;
106106

0 commit comments

Comments
 (0)