Merge pull request #321 from Dmitry-Me/dontLeakTheElement

Don't leak the element
This commit is contained in:
Lee Thomason 2015-04-09 14:49:59 -07:00
commit 9f24acd369
1 changed files with 2 additions and 0 deletions

View File

@ -1435,6 +1435,8 @@ int main( int argc, const char ** argv )
XMLElement* newElement = doc.NewElement( "printme" );
XMLPrinter printer;
newElement->Accept( &printer );
// Delete the node to avoid possible memory leak report in debug output
doc.DeleteNode( newElement );
}
{
// Issue 302. Clear errors from LoadFile/SaveFile