Jupiter - 2009-10-27


I am using C++ for tinyxml. when to write an XML document file, I create the node by TiXmlElement* node new TiXmlElement and TiXmlText* text = new TiXmlText, should both node and text be cleaned up by calling delete node or delete text when a class destructor is called?

In fact, I've got Segmentation Fault when trying to delete those created object. What I am missing here?

Thank you.

Kind Regards,