Bug 797500 - valgrind errors - new/delete vs malloc/free

Mismatched new/g_free()
Change to new/guid_free() which calls delete
This commit is contained in:
Christopher Lam
2019-11-17 07:17:27 +08:00
parent 78cd4eaa05
commit de09259f13
20 changed files with 47 additions and 47 deletions

View File

@@ -209,12 +209,12 @@ equals_node_val_vs_guid (xmlNodePtr node, const GncGUID* id)
if (guid_compare (cmpid, id) == 0)
{
g_free (cmpid);
guid_free (cmpid);
return TRUE;
}
else
{
g_free (cmpid);
guid_free (cmpid);
return FALSE;
}
}