summaryrefslogtreecommitdiff
path: root/libpiano/xml.c
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-13 20:39:13 +0200
committerLars-Dominik Braun <PromyLOPh@gmail.com>2008-06-13 20:39:13 +0200
commitb1ea463843add37874f9768b606825504cdc8eb2 (patch)
treef71f94b967ddc7bf23a174b2ad37db0ffa80ab3d /libpiano/xml.c
parent481f0cdcd0fb33a35865dd8ab30aae6c74f84f20 (diff)
downloadpianobar-windows-b1ea463843add37874f9768b606825504cdc8eb2.tar.gz
pianobar-windows-b1ea463843add37874f9768b606825504cdc8eb2.tar.bz2
pianobar-windows-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/xml.c')
-rw-r--r--libpiano/xml.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libpiano/xml.c b/libpiano/xml.c
index 048f792..6f8cb55 100644
--- a/libpiano/xml.c
+++ b/libpiano/xml.c
@@ -203,7 +203,6 @@ void PianoXmlParseUserinfo (PianoHandle_t *ph, char *xml) {
PianoXmlStructParser (structRoot, PianoXmlParseUserinfoCb, &ph->user);
xmlFreeDoc (doc);
- xmlCleanupParser();
}
/* parse stations returned by pandora
@@ -244,7 +243,6 @@ void PianoXmlParseStations (PianoHandle_t *ph, char *xml) {
}
xmlFreeDoc (doc);
- xmlCleanupParser();
}
/* parses playlist; used when searching too
@@ -284,7 +282,6 @@ void PianoXmlParsePlaylist (PianoHandle_t *ph, char *xml) {
}
xmlFreeDoc (doc);
- xmlCleanupParser();
}
/* parse simple answers like this: <?xml version="1.0" encoding="UTF-8"?>
@@ -310,7 +307,6 @@ PianoReturn_t PianoXmlParseSimple (char *xml) {
}
xmlFreeDoc (doc);
- xmlCleanupParser();
return ret;
}
@@ -413,7 +409,6 @@ void PianoXmlParseSearch (char *searchXml,
PianoXmlStructParser (structRoot, PianoXmlParseSearchCb, searchResult);
xmlFreeDoc (doc);
- xmlCleanupParser();
}
/* encode reserved xml chars