Bug 797186 - gtk crash closing parent window edit->stylesheets

Free then NULL, not the other way around.
This commit is contained in:
John Ralls 2019-05-09 19:33:08 -05:00
parent 7b6b86000d
commit d624894099

View File

@ -390,8 +390,8 @@ gnc_style_sheet_select_dialog_response_cb (GtkDialog *unused,
case GTK_RESPONSE_CLOSE:
default:
gnc_style_sheet_dialog = NULL;
gtk_widget_destroy(ss->toplevel);
gnc_style_sheet_dialog = NULL;
g_free(ss);
break;
}