gnucash maint: Bug 797906 - GnuCash data file is locked after a "save-as"...
John Ralls
jralls at code.gnucash.org
Tue Mar 23 14:27:46 EDT 2021
Updated via https://github.com/Gnucash/gnucash/commit/170502c6 (commit)
from https://github.com/Gnucash/gnucash/commit/0c15dc17 (commit)
commit 170502c6c5c17e3138df1d4cb9669ca2803dc855
Author: John Ralls <jralls at ceridwen.us>
Date: Tue Mar 23 09:48:19 2021 -0700
Bug 797906 - GnuCash data file is locked after a "save-as"...
to mysql database.
It's more general, any save-as to a different backend type, i.e.
xml->sql or sql->xml, left the previous book locked.
Ensure that the session is ended and the book unlocked in the
backend's destructor. This also fixes a memory leak in the SQL
backend because the GncSqlConnection wasn't being deleted.
Summary of changes:
libgnucash/backend/sql/gnc-sql-backend.cpp | 5 +++++
libgnucash/backend/sql/gnc-sql-backend.hpp | 2 +-
libgnucash/backend/sql/test/utest-gnc-backend-sql.cpp | 5 ++---
libgnucash/backend/xml/gnc-xml-backend.cpp | 5 +++++
libgnucash/backend/xml/gnc-xml-backend.hpp | 2 +-
5 files changed, 14 insertions(+), 5 deletions(-)
More information about the gnucash-patches
mailing list