Fix segfault in test-portfolios after debug build.

gnc-clear-current-session deletes the pricedb so deleting it first
is unnecessary. Deleting it first and not nulling the pointer in
the book leads to accessing freed memory, and debug mode poisons
that to force a crash when it happens.
This commit is contained in:
John Ralls
2019-10-12 09:29:40 -07:00
parent 4c790b2084
commit 57e403b048

View File

@@ -56,9 +56,6 @@
(test-assert (format #f "wrong-option ~a ~a" section name) #f))))
(define (teardown)
(gnc-pricedb-destroy
(gnc-pricedb-get-db
(gnc-get-current-book)))
(gnc-clear-current-session))
(define (null-test variant uuid)