diff --git a/libgnucash/backend/sql/test/utest-gnc-backend-sql.cpp b/libgnucash/backend/sql/test/utest-gnc-backend-sql.cpp index a288cc17b6..19f24595f6 100644 --- a/libgnucash/backend/sql/test/utest-gnc-backend-sql.cpp +++ b/libgnucash/backend/sql/test/utest-gnc-backend-sql.cpp @@ -329,7 +329,7 @@ test_gnc_sql_commit_edit (void) g_log_remove_handler (logdomain, hdlr1); g_object_unref (inst); - g_object_unref (book); + qof_book_destroy (book); delete sql_be; } /* handle_and_term