New issue 184 by echesl...@gmail.com: xmlCleanupParser used incorrectly,
can cause crashes
http://code.google.com/p/opencollada/issues/detail?id=184
In GeneratedSaxParser/src/GeneratedSaxParserLibxmlSaxParser.cpp,
xmlCleanupParser is called in the destructor of LibxmlSaxParser.
xmlCleanupParser is not meant to clean up after one instance of parsing.
As per http://xmlsoft.org/html/libxml-parser.html#xmlCleanupParser , it
should be called either right before exit, which OpenCOLLADA can't
guarantee, or not at all.
This call can cause crashes in seemingly unrelated, pthread-using code. We
found this issue in Sirikata as it caused crashes in some PulseAudio code
(which we were using indirectly via SDL). I tracked it down to this issue
via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500696#15 .
I think this line should just be removed. We're using a patched version
that just removes the line in Sirikata and it seems to be fine.