mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[gnc-xml-backend.cpp] gchar* must be freed after use.
It is used as a constructor for std::string which makes a copy but doesn't take ownership.
This commit is contained in:
parent
7fbbd6e745
commit
4a75baa4c6
@ -116,7 +116,9 @@ GncXmlBackend::session_begin(QofSession* session, const char* new_uri,
|
|||||||
SessionOpenMode mode)
|
SessionOpenMode mode)
|
||||||
{
|
{
|
||||||
/* Make sure the directory is there */
|
/* Make sure the directory is there */
|
||||||
m_fullpath = gnc_uri_get_path (new_uri);
|
auto path_str = gnc_uri_get_path (new_uri);
|
||||||
|
m_fullpath = path_str;
|
||||||
|
g_free (path_str);
|
||||||
|
|
||||||
if (m_fullpath.empty())
|
if (m_fullpath.empty())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user