qt5base-lts/tests/auto/xml/dom/qdom
Sami Rosendahl d55cdcd59f Fix memory leak in QDomDocument DTD entity declaration handler
The created entity node's reference count needs to be decremented to 0
before it is added as a child, because appendChild will increment the
reference count to correct value of 1. Also added autotest DTDEntityDecl
to tst_qdom to expose the leak when executed under valgrind memcheck.
There was no previous direct test case for unparsed entity declarations in
DTD, only indirect coverage via regression test cloneDTD_QTBUG8398.

Task-number: QTBUG-22587
Change-Id: I394ae9fc32d5b84e4ca287c5db4dd7effde6128b
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-01-06 02:59:59 +01:00
..
testdata Moved xml autotests into new directory structure 2011-09-06 10:31:40 +02:00
.gitattributes Moved xml autotests into new directory structure 2011-09-06 10:31:40 +02:00
.gitignore Moved xml autotests into new directory structure 2011-09-06 10:31:40 +02:00
doubleNamespaces.xml Moved xml autotests into new directory structure 2011-09-06 10:31:40 +02:00
qdom.pro all remaining tests: eliminated usage of qttest_p4.prf 2011-10-25 08:42:23 +02:00
tst_qdom.cpp Fix memory leak in QDomDocument DTD entity declaration handler 2012-01-06 02:59:59 +01:00
umlaut.xml Moved xml autotests into new directory structure 2011-09-06 10:31:40 +02:00