Bug #551038: Don't destroy the options database before destroying the options dialog that depends on it.

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17508 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Charles Day 2008-09-14 17:48:58 +00:00
parent 6f4cecf48e
commit 8e9551af98
2 changed files with 2 additions and 2 deletions

View File

@ -117,8 +117,8 @@ gnc_style_sheet_options_close_cb(GNCOptionWin * propertybox,
gtk_tree_path_free(path);
}
gtk_tree_row_reference_free (ssi->row_ref);
gnc_option_db_destroy(ssi->odb);
gnc_options_dialog_destroy(ssi->odialog);
gnc_option_db_destroy(ssi->odb);
scm_gc_unprotect_object(ssi->stylesheet);
g_free(ssi);
}

View File

@ -112,9 +112,9 @@ gnc_options_dialog_close_cb(GNCOptionWin * propertybox,
SCM set_editor = scm_c_eval_string("gnc:report-set-editor-widget!");
scm_call_2(set_editor, win->cur_report, SCM_BOOL_F);
gnc_options_dialog_destroy(win->win);
gnc_option_db_destroy(win->db);
scm_gc_unprotect_object(win->scm_options);
gnc_options_dialog_destroy(win->win);
g_free(win);
}