From b1ea463843add37874f9768b606825504cdc8eb2 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 13 Jun 2008 20:39:13 +0200 Subject: 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) --- src/Makefile.am | 4 ++-- src/main.c | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index fbd184c..20b5b40 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,6 @@ bin_PROGRAMS = pianobar pianobar_SOURCES = main.c -pianobar_CPPFLAGS = ${LIBCURL_CFLAGS} ${LIBAO_CFLAGS} -I../libpiano -pianobar_LDADD = ${LIBCURL_LIBS} ${LIBAO_LIBS} ${LIBFAAD_LIBS} ${LIBREADLINE_LIBS} -lpthread ../libpiano/libpiano.la +pianobar_CPPFLAGS = ${LIBCURL_CFLAGS} ${LIBAO_CFLAGS} ${LIBXML_CFLAGS} -I../libpiano +pianobar_LDADD = ${LIBCURL_LIBS} ${LIBAO_LIBS} ${LIBFAAD_LIBS} ${LIBREADLINE_LIBS} ${LIBXML_LIBS} -lpthread ../libpiano/libpiano.la diff --git a/src/main.c b/src/main.c index 0dcac22..314748f 100644 --- a/src/main.c +++ b/src/main.c @@ -22,6 +22,8 @@ THE SOFTWARE. #include #include +#include +#include #include #include #include @@ -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; } -- cgit v1.2.3