gnucash master: Fix xml save crash.

John Ralls jralls at
Fri Dec 2 17:47:17 EST 2016

Updated	 via (commit)
	from (commit)

commit 9d75378953f27561e439d504ce596278dece8b1c
Author: John Ralls <jralls at>
Date:   Fri Dec 2 14:42:46 2016 -0800

    Fix xml save crash.
    Actually two problems; first, save_may_clobber_data returned the reverse
    of what it should have and second, the backend's m_book (which pointed
    to the old book) wasn't nulled so there was a mismatch at save time
    preventing the save from taking place. Then, when quitting GnuCash, the
    cleanup found the old m_book pointer and tried to use it, causing a
    memory protection crash.

Summary of changes:
 src/backend/xml/gnc-xml-backend.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

More information about the gnucash-patches mailing list