diff options
Diffstat (limited to 'src/plist.c')
| -rw-r--r-- | src/plist.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c index d40b946..569251b 100644 --- a/src/plist.c +++ b/src/plist.c | |||
| @@ -31,6 +31,24 @@ | |||
| 31 | #include <node.h> | 31 | #include <node.h> |
| 32 | #include <node_iterator.h> | 32 | #include <node_iterator.h> |
| 33 | 33 | ||
| 34 | #include <libxml/encoding.h> | ||
| 35 | #include <libxml/dict.h> | ||
| 36 | #include <libxml/xmlerror.h> | ||
| 37 | #include <libxml/globals.h> | ||
| 38 | #include <libxml/threads.h> | ||
| 39 | #include <libxml/xmlmemory.h> | ||
| 40 | |||
| 41 | void plist_cleanup(void) | ||
| 42 | { | ||
| 43 | /* free memory from parser initialization */ | ||
| 44 | xmlCleanupCharEncodingHandlers(); | ||
| 45 | xmlDictCleanup(); | ||
| 46 | xmlResetLastError(); | ||
| 47 | xmlCleanupGlobals(); | ||
| 48 | xmlCleanupThreads(); | ||
| 49 | xmlCleanupMemory(); | ||
| 50 | } | ||
| 51 | |||
| 34 | plist_t plist_new_node(plist_data_t data) | 52 | plist_t plist_new_node(plist_data_t data) |
| 35 | { | 53 | { |
| 36 | return (plist_t) node_create(NULL, data); | 54 | return (plist_t) node_create(NULL, data); |
