don't leak an extra copy of the values
* e-xml-hash-utils.c (e_xml_to_hash): don't leak an extra copy of the values svn path=/trunk/; revision=21497
This commit is contained in:
@ -54,6 +54,7 @@ e_xml_to_hash (xmlDoc *doc, EXmlHashType type)
|
||||
}
|
||||
|
||||
g_hash_table_insert (hash, g_strdup (key), g_strdup (value));
|
||||
xmlFree (value);
|
||||
}
|
||||
|
||||
return hash;
|
||||
|
Reference in New Issue
Block a user