On Fri, May 22, 2009 at 02:57:38PM +0200, Laurent Marzullo wrote: > Hello, > > I've notice that "xmlNewNs" does not delete the string I gave it. So, as > my prefix is a newly created one (with xmlStrndup) I would like to know > if there's a way > to "register" this string as to be deleted at document deletion time or > if I should take care of it myself ?
The strings you pass are copied internally. You allocate them, you free them, it's not libxml2 responsability. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ [email protected] | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
