mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-12-01 21:19:16 -06:00
When doing a file save from the a new start we have no key file
Test for Key_file not being NULL before trying to free it.
This commit is contained in:
parent
e589200402
commit
28b2e732ab
@ -193,7 +193,8 @@ gnc_state_set_base (const QofSession *session)
|
||||
DEBUG("Clean up");
|
||||
g_free(sf_extension);
|
||||
g_free(original);
|
||||
g_key_file_free (key_file);
|
||||
if (key_file != NULL)
|
||||
g_key_file_free (key_file);
|
||||
|
||||
LEAVE ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user