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:
Robert Fewell 2018-03-12 06:42:52 +00:00
parent e589200402
commit 28b2e732ab

View File

@ -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 ();
}