diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-13 20:39:13 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-13 20:39:13 +0200 |
commit | b1ea463843add37874f9768b606825504cdc8eb2 (patch) | |
tree | f71f94b967ddc7bf23a174b2ad37db0ffa80ab3d /src/main.c | |
parent | 481f0cdcd0fb33a35865dd8ab30aae6c74f84f20 (diff) | |
download | pianobar-b1ea463843add37874f9768b606825504cdc8eb2.tar.gz pianobar-b1ea463843add37874f9768b606825504cdc8eb2.tar.bz2 pianobar-b1ea463843add37874f9768b606825504cdc8eb2.zip |
Hopefully fixed wrong libxml2 usage
We did a xmlCleanupParser () call everytime we finished parsing; this is wrong (http://xmlsoft.org/html/libxml-parser.html#xmlCleanupParser)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -22,6 +22,8 @@ THE SOFTWARE. #include <piano.h> #include <curl/curl.h> +#include <libxml/parser.h> +#include <libxml/tree.h> #include <stdlib.h> #include <string.h> #include <stdio.h> @@ -240,6 +242,7 @@ int main (int argc, char **argv) { /* init some things */ curl_global_init (CURL_GLOBAL_SSL); + xmlInitParser (); ao_initialize(); PianoInit (&ph); @@ -384,6 +387,7 @@ int main (int argc, char **argv) { PianoDestroy (&ph); curl_global_cleanup (); ao_shutdown(); + xmlCleanupParser (); return 0; } |