]> git.saurik.com Git - wxWidgets.git/commit
Fix memory leak in wxXmlNode::operator=().
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 May 2013 20:01:58 +0000 (20:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 15 May 2013 20:01:58 +0000 (20:01 +0000)
commit0b3e395a5c7a61c6bcf08e2c340a7f2de8ba3c37
treebe43a467d1a0155e922948bd4be79c5d20459d41
parent5181927e6bb699cb0c689fd988d2e4fffaf47a57
Fix memory leak in wxXmlNode::operator=().

We must delete all children and attributes in the node being overwritten and
not just the first one of each.

Add a unit test exercising this code to be able to check that valgrind doesn't
report memory leak any more after the fix.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/xml/xml.h
src/xml/xml.cpp
tests/xml/xmltest.cpp