[gnc-xml-backend.cpp] g_free char* from g_path_get_dirname

This commit is contained in:
Christopher Lam 2023-02-27 05:29:08 +08:00
parent 89e63ef672
commit 47b85d3b2f

View File

@ -136,7 +136,10 @@ GncXmlBackend::session_begin(QofSession* session, const char* new_uri,
if (!check_path(m_fullpath.c_str(),
mode == SESSION_NEW_STORE || mode == SESSION_NEW_OVERWRITE))
return;
m_dirname = g_path_get_dirname (m_fullpath.c_str());
auto dirname = g_path_get_dirname (m_fullpath.c_str());
m_dirname = dirname;
g_free (dirname);