diff options
author | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-19 17:00:25 +0200 |
---|---|---|
committer | Lars-Dominik Braun <PromyLOPh@gmail.com> | 2008-06-19 17:00:25 +0200 |
commit | cc038afd9d9cca3c7eb50b71d133da73fa39f8af (patch) | |
tree | 4def8ee0dfd61a814d18fe9e878f3e4a6b130b0f /libpiano/src/xml.c | |
parent | 880a0446c465d22ea3e36db838b8df1e594fa4da (diff) | |
download | pianobar-cc038afd9d9cca3c7eb50b71d133da73fa39f8af.tar.gz pianobar-cc038afd9d9cca3c7eb50b71d133da73fa39f8af.tar.bz2 pianobar-cc038afd9d9cca3c7eb50b71d133da73fa39f8af.zip |
piano: Using own free () wrapper now
PS: "lib:" prefix is now "piano:"; I may add other libraries (last.fm support
e.g.)
Diffstat (limited to 'libpiano/src/xml.c')
-rw-r--r-- | libpiano/src/xml.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libpiano/src/xml.c b/libpiano/src/xml.c index 2d9e82d..2613f40 100644 --- a/libpiano/src/xml.c +++ b/libpiano/src/xml.c @@ -29,6 +29,7 @@ THE SOFTWARE. #include "piano.h" #include "crypt.h" #include "config.h" +#include "main.h" void PianoXmlStructParser (xmlNode *structRoot, void (*callback) (char *, xmlNode *, void *), void *data); @@ -65,7 +66,7 @@ void PianoXmlIsFaultCb (char *key, xmlNode *value, void *data) { printf (PACKAGE ": Unknown error %s in %s\n", matchStr, valueStr); } - free (matchStr); + PianoFree (matchStr, 0); } } } @@ -228,7 +229,7 @@ void PianoXmlParsePlaylistCb (char *key, xmlNode *value, void *data) { /* FIXME: the key seems to be broken... so ignore 8 x 0x08 postfix; * urlTailN/2 because the encrypted hex string is now decoded */ strncat (song->audioUrl, urlTail, (urlTailN/2)-8); - free (urlTail); + PianoFree (urlTail, 0); } else if (strcmp ("artistSummary", key) == 0) { song->artist = strdup (valueStr); |