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?
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.