Skip to content

Commit

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

Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
  • Loading branch information
zhangxianwei8 authored and lukefromdc committed Feb 22, 2018
1 parent 257b236 commit c7697c9
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; break;


case THEME_TYPE_META: case THEME_TYPE_META:
theme = (MateThemeCommonInfo *) mate_theme_info_find (name); theme = (MateThemeCommonInfo *) mate_theme_meta_info_find (name);
theme_dir = g_strdup (theme->path); theme_dir = g_path_get_dirname (theme->path);
del_empty_parent = FALSE; del_empty_parent = FALSE;
break; break;


Expand Down

0 comments on commit c7697c9

Please sign in to comment.