~hrg/hrg-packaging/collada-dom

« back to all changes in this revision

Viewing changes to dom/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp

  • Committer: GitHub
  • Author(s): Rosen Diankov
  • Date: 2019-07-03 01:16:19 UTC
  • mfrom: (25.1.1)
  • Revision ID: git-v1:090cc12cb31e15aedaf7c531fc217f6052228d86
Merge pull request #34 from ziyan/xmlCleanupParser

Remove call to xmlCleanupParser(), because it is unsafe to call when …

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
        xmlFreeTextWriter( writer );
166
166
        writer = NULL;
167
167
    }
168
 
    xmlCleanupParser();
 
168
    // according to libxml2 source, xmlCleanupParser can only be called when the application
 
169
    // has no other usage of libxml2, which we cannot guarantee here, so it is unsafe to call
 
170
    // xmlCleanupParser();
169
171
}
170
172
 
171
173
daeInt daeLIBXMLPlugin::setOption( daeString option, daeString value )