mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Clean up the lock file properly (i.e. in session destruction) when an
error is detected. #101004 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7765 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -396,11 +396,7 @@ gnc_file_be_load_from_file (Backend *bend, GNCBook *book)
|
||||
}
|
||||
|
||||
if(error != ERR_BACKEND_NO_ERR)
|
||||
{
|
||||
xaccBackendSetError(bend, error);
|
||||
g_free(be->lockfile);
|
||||
be->lockfile = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user