Fix account-tree double-free in scheme test when built with gcc.

Oddly when built with clang it doesn't exhibit the crash.
This commit is contained in:
John Ralls
2020-01-23 10:23:14 -08:00
parent 691cb0992e
commit cd6ccbe331

View File

@@ -83,8 +83,7 @@
(create-account book expenses ACCT-TYPE-EXPENSE "Rent")))
(define (cleanup book root)
(xaccAccountBeginEdit root)
(xaccAccountDestroy root)
;; Destroying the book destroys the account tree too
(qof-book-destroy book))
(define (test-make-account-list-option book)