From 6ab7e301f1854fd18891ddfeaa64e7485be990ba Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Sat, 26 Mar 2016 15:30:28 +0100 Subject: Move libxml cleanup code to a plist_cleanup method --- src/xplist.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/xplist.c') 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(); } -- cgit v1.1-32-gdbae