Don't unprotect #f. Crashes scheme when run under gdb.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7397 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2002-10-27 08:42:09 +00:00
parent fdecf1a9fb
commit 2305d0823d

View File

@ -648,7 +648,8 @@ gnc_report_window_load_cb(gnc_html * html, URLType type,
win->cur_odb = NULL;
}
scm_unprotect_object(win->cur_report);
if(win->cur_report != SCM_BOOL_F)
scm_unprotect_object(win->cur_report);
win->cur_report = inst_report;
scm_protect_object(win->cur_report);