Re: [xml] namespace attached to document freed at document free time?
- From: Daniel Veillard <veillard redhat com>
- To: Chris Ryland <cpr emsoftware com>
- Cc: XML List <xml gnome org>
- Subject: Re: [xml] namespace attached to document freed at document free time?
- Date: Sat, 7 Jun 2003 17:15:23 -0400
On Sat, Jun 07, 2003 at 11:18:56AM -0400, Chris Ryland wrote:
If I create a name space, e.g.,
ns = xmlNewNs(np, BAD_CAST "http:...", NULL)
and a document
doc = xmlNewDoc(BAD_CAST "1.0");
and use ns when creating nodes in that document (xmlNewNode(ns, ...)),
when I later free the document, the namespace also seems to be freed
automatically. (Or at least, when I free that namespace before freeing
the document, I get malloc() debug messages about double freeing.)
Is this true?
the namespace is created on "np" and freed with that node, yes.
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]