diff options
author | Frederik Carlier | 2016-03-26 15:30:28 +0100 |
---|---|---|
committer | Nikias Bassen | 2016-04-20 14:18:46 +0200 |
commit | 6ab7e301f1854fd18891ddfeaa64e7485be990ba (patch) | |
tree | b895af9cd1f73235f85bc1b67d450e2fbd590d6e /src/xplist.c | |
parent | 275cfcd5ac317185c9f3d8156c357df5f8155c37 (diff) | |
download | libplist-6ab7e301f1854fd18891ddfeaa64e7485be990ba.tar.gz libplist-6ab7e301f1854fd18891ddfeaa64e7485be990ba.tar.bz2 |
Move libxml cleanup code to a plist_cleanup method
Diffstat (limited to 'src/xplist.c')
-rw-r--r-- | src/xplist.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/xplist.c b/src/xplist.c index 09c1a11..e0a76da 100644 --- a/src/xplist.c +++ b/src/xplist.c @@ -573,15 +573,6 @@ PLIST_API void plist_to_xml(plist_t plist, char **plist_xml, uint32_t * length) tmp = NULL; } xmlFreeDoc(plist_doc); - - - /* free memory from parser initialization */ - xmlCleanupCharEncodingHandlers(); - xmlDictCleanup(); - xmlResetLastError(); - xmlCleanupGlobals(); - xmlCleanupThreads(); - xmlCleanupMemory(); } static xmlParserInputPtr plist_xml_external_entity_loader(const char *URL, const char *ID, xmlParserCtxtPtr ctxt) @@ -602,12 +593,4 @@ PLIST_API void plist_from_xml(const char *plist_xml, uint32_t length, plist_t * xml_to_node(root_node, plist); xmlFreeDoc(plist_doc); } - - /* free memory from parser initialization */ - xmlCleanupCharEncodingHandlers(); - xmlDictCleanup(); - xmlResetLastError(); - xmlCleanupGlobals(); - xmlCleanupThreads(); - xmlCleanupMemory(); } |