In the function TiXmlDocument::Parse, the TiXmlNode* type variable node is freed through the call to LinkEndChild. It is then de-referenced later using node->ToDeclaration(). At that point, a program crash could occur.
Maybe a fix would be to call LinkEndChild as the last instruction of the while loop ?
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.