[xml] Re: xmlFreeStr
- From: "Petr Kozelka" <pkozelka centrum cz>
- To: "Daniel Veillard" <veillard redhat com>
- Cc: "Igor Zlatkovic" <igor stud fh-frankfurt de>, <libxml2-pas-devel lists sourceforge net>, <xml gnome org>
- Subject: [xml] Re: xmlFreeStr
- Date: Sat, 26 Jan 2002 14:21:06 +0100
Have you tried to:
1/ make wrapper around you own set of malloc/free/realloc/strdup functions
2/ call xmlMemSetup() with those at the initialization of the
libxml2 wrapper.
Can you try it and check it does not work ! If it does work then the
API extension is IMHO unnecessary.
I am trying it now; I still have some troubles (very likely based on a bug on my side), however I am quite
sure that this IS the
way. I am really sorry that I didn't find this possibility myself :-( it looks so apparent now...
free(str);
wrong this would have to be xmlFree() ! It still unclear to me that
you really understood how libxml2 memory allocation handler really works.
yes I know, it was a just a mistake; however you are right that I have a gap in this area, filled a bit more
now...
Thanks a lot
Petr
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]