From cd6ccbe3318d6db8427176fa48900cac58a72492 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 23 Jan 2020 10:23:14 -0800 Subject: [PATCH] Fix account-tree double-free in scheme test when built with gcc. Oddly when built with clang it doesn't exhibit the crash. --- libgnucash/app-utils/test/test-gnc-optiondb.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libgnucash/app-utils/test/test-gnc-optiondb.scm b/libgnucash/app-utils/test/test-gnc-optiondb.scm index 814ca1a97b..d1db9d7385 100644 --- a/libgnucash/app-utils/test/test-gnc-optiondb.scm +++ b/libgnucash/app-utils/test/test-gnc-optiondb.scm @@ -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)