[xml] Is this condition (xmlFreeNodeList) supposed to crash?
- From: Jose Commins <axora myrealbox com>
- To: xml gnome org
- Subject: [xml] Is this condition (xmlFreeNodeList) supposed to crash?
- Date: Tue, 30 Nov 2004 14:44:46 +0000
If I perform this:
output_root_element = xmlDocGetRootElement(output_doc);
xmlFreeNodeList(output_root_element);
xmlFreeDoc(output_doc);
I get a crash.
If I remove 'xmlFreeNodeList' it doesn't crash. Now, I don't normally
use 'xmlFreeNodeList' but I've seen many examples on this list that do
so, therefore I put in the line of code just to see what happened. In
my XML doc I have nodes attached to 'output_doc' that I've created. Is
the above code supposed to crash or is there something I am not aware
of?
Regards,
Jose.
--
"On two occasions, I have been asked [by members of Parliament], 'Pray,
Mr. Babbage, if you put into the machine wrong figures, will the right
answers come out?' I am not able to rightly apprehend the kind of
confusion of ideas that could provoke such a question." -- Charles
Babbage (1791-1871) Inventor of the "Analytical Engine", the first
computer.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]