I’m using DOM 1.4.1 to export a COLLADA file. I use the following code:
DAE *dae_object = new DAE;
// …
dae_object->getDatabase()->insertCollection(name, &collection);
domCOLLADA domRoot = (domCOLLADA)collection->getDomRoot();
// Add with domRoot->createAndPlace(…)
// …
delete dae_object;
DAE::cleanup();
The exporter is a separate plug-in DLL. When I exit the application I get a lot of memory leaks. These are not from my application since if I don’t call the collada code I don’t get them.
Actually all I need to do to get them is to just create the DAE object and call delete and cleanup on it.
Are there other clean up functions to be called?
Thanks