1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-29 15:13:01 +04:00

Merge pull request #575 from Dmitry-Me/extractDuplicatedString

Extract duplicated text string
This commit is contained in:
Lee Thomason
2017-06-28 10:43:01 -07:00
committed by GitHub
+3 -2
View File
@@ -1615,13 +1615,14 @@ int main( int argc, const char ** argv )
// If it doesn't assert, it passes. Caused by objects
// getting created during parsing which are then
// inaccessible in the memory pools.
const char* xmlText = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><test>";
{
XMLDocument doc;
doc.Parse("<?xml version=\"1.0\" encoding=\"UTF-8\"?><test>");
doc.Parse(xmlText);
}
{
XMLDocument doc;
doc.Parse("<?xml version=\"1.0\" encoding=\"UTF-8\"?><test>");
doc.Parse(xmlText);
doc.Clear();
}
}