mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
[backend/xml] Remove unused string copy
This commit is contained in:
parent
cb98864f7b
commit
bd94965d9b
@ -205,12 +205,8 @@ double_to_string (double value)
|
||||
static void
|
||||
add_text_to_node (xmlNodePtr node, const gchar* type, gchar* val)
|
||||
{
|
||||
gchar* newtype = g_strdup (type);
|
||||
gchar* newval = g_strdup (val);
|
||||
xmlSetProp (node, BAD_CAST "type", BAD_CAST type);
|
||||
xmlNodeSetContent (node, checked_char_cast (val));
|
||||
g_free (newtype);
|
||||
g_free (newval);
|
||||
}
|
||||
|
||||
static void add_kvp_slot (const char* key, KvpValue* value, void* data);
|
||||
|
Loading…
Reference in New Issue
Block a user