[xml] namespace attached to document freed at document free time?



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?

Cheers!
--Chris Ryland / Em Software, Inc. / www.emsoftware.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]