> The namespace struct is owned by the node which declares it (the fact that > subnodes of this node belong to this namespace does not affect the memory > management of the namespace - ie, they don't retain it ... which might be > considered a memory bug in libxml2 even if it rarely - if ever - will show > up). When the <overlay> node is freed, all the namespaces it declares are > freed.
Just to explain myself better - the thing normally works fine because when the node is freed, all children (which are the only nodes which could belong to the namespace) are freed too, so no reference to the namespace remains. It's not a bug, really, it's just that if you start moving/unlinking nodes and/or namespaces around the libxml2 code gave me the feeling you can end up with some broken reference from a node to a namespace declared elsewhere ... and then this memory release scheme breaks down. _______________________________________________ Bug-gnustep mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-gnustep
