commit | 5daa54cf2bc32d08341736600116501276017b6b | [log] [tgz] |
---|---|---|
author | Dmitry-Me <wipedout@yandex.ru> | Wed Apr 08 17:45:07 2015 +0300 |
committer | Dmitry-Me <wipedout@yandex.ru> | Wed Apr 08 17:45:07 2015 +0300 |
tree | 898fac2557e797f276a589271b9c5f5645700eed | |
parent | 4a0392dd9dfc44e718a780b3891f6ef84683d67c [diff] [blame] |
Don't leak the element
diff --git a/xmltest.cpp b/xmltest.cpp index 2f13dff..b70fc51 100644 --- a/xmltest.cpp +++ b/xmltest.cpp
@@ -1435,6 +1435,8 @@ 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