Skip to content

Commit

Permalink
Merge pull request #575 from Dmitry-Me/extractDuplicatedString
Browse files Browse the repository at this point in the history
Extract duplicated text string
  • Loading branch information
leethomason committed Jun 28, 2017
2 parents 37bc3ac + 5d1aec1 commit c1f1de7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions xmltest.cpp
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit c1f1de7

Please sign in to comment.