diff --git a/gnucash/report/report-gnome/dialog-report-style-sheet.c b/gnucash/report/report-gnome/dialog-report-style-sheet.c index 148cd7b6060..2c20f7b01a0 100644 --- a/gnucash/report/report-gnome/dialog-report-style-sheet.c +++ b/gnucash/report/report-gnome/dialog-report-style-sheet.c @@ -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; }