Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
theme-util.c: fix segfault on attempt to delete custom theme
fixes #334

Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
  • Loading branch information
zhangxianwei8 authored and raveit65 committed Mar 13, 2018
1 parent 8adccf3 commit 7165e06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions capplets/appearance/theme-util.c
Expand Up @@ -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;

Expand Down

0 comments on commit 7165e06

Please sign in to comment.