The CVS repository already has the uninitialised dictionary bug fixed, so this patch takes care of the case where the schema document issupplied by the application and was being freed twice. With this patch, the
schema document is the responsibility of the application and libxml2 will not free it. I still think that the document should be copied (but only once), since it will be changed when parsed (whitespace stripped). However, if the application cares then it can make its own copy. Cheers, Steve Ball
Attachment:
xmlschemas.patch
Description: Binary data
Steve Ball | XSLT Standard Library | Training & Seminars Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development Steve Ball zveno com +---------------------------+--------------------- Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099