From cc038afd9d9cca3c7eb50b71d133da73fa39f8af Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Thu, 19 Jun 2008 17:00:25 +0200 Subject: piano: Using own free () wrapper now PS: "lib:" prefix is now "piano:"; I may add other libraries (last.fm support e.g.) --- libpiano/src/xml.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libpiano/src/xml.c') 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); -- cgit v1.2.3