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:
Dan Winship
2003-06-20 14:36:58 +00:00
parent 1c18cd11c1
commit a6056c7493
2 changed files with 6 additions and 0 deletions

View File

@ -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;