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 /libpiano/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 'libpiano/main.c')
-rw-r--r-- | libpiano/main.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libpiano/main.c b/libpiano/main.c index e475b59..cc4e65a 100644 --- a/libpiano/main.c +++ b/libpiano/main.c @@ -32,7 +32,9 @@ THE SOFTWARE. #include "xml.h" #include "crypt.h" -/* initialize piano handle, set up curl handle and settings +/* initialize piano handle, set up curl handle and settings; note: you + * _must_ init curl and libxml2 using curl_global_init (CURL_GLOBAL_SSL) + * and xmlInitParser (), you also _must_ cleanup their garbage on your own! * @author PromyLOPh * @added 2008-06-05 * @param piano handle @@ -140,7 +142,9 @@ void PianoDestroyPlaylist (PianoHandle_t *ph) { ph->playlist = NULL; } -/* frees the whole piano handle structure +/* frees the whole piano handle structure; this will _not_ cleanup curl's + * internal garbage, you have to call curl_global_cleanup () and + * xmlCleanupParser () for libxml2 * @author PromyLOPh * @added 2008-06-05 * @param piano handle |