Skip to content
Permalink
Browse files

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 lukefromdc committed Jan 15, 2018
1 parent 257b236 commit c7697c9d6ac7df466063bf778d30801a99bc0cd7
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;

0 comments on commit c7697c9

Please sign in to comment.
You can’t perform that action at this time.