Skip to content

Commit

Permalink
Bug 797186 - gtk crash closing parent window edit->stylesheets
Browse files Browse the repository at this point in the history
Free then NULL, not the other way around.
  • Loading branch information
jralls committed May 10, 2019
1 parent 7b6b860 commit d624894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnucash/report/report-gnome/dialog-report-style-sheet.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit d624894

Please sign in to comment.