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 raveit65 committed Jan 15, 2018
1 parent 8adccf3 commit 7165e06b3ba4fc9abf7508d4f599a4ea744afdf8
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 7165e06

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