Fix memory leaks in schema validation
authorHonglei Zhang <honglei.zhang@nokia.com>
Wed, 21 Sep 2011 08:53:30 +0000 (11:53 +0300)
committerHonglei Zhang <honglei.zhang@nokia.com>
Wed, 21 Sep 2011 08:53:30 +0000 (11:53 +0300)
commit8e2368bce81180c12a607afd101964ef1e8a1f1b
treedef91e761376389baab063f1e08d9e424142d360
parenta314ecf9b8b4c9b63432df8caf797fa6b28a433d
Fix memory leaks in schema validation

Bug fix for QTBUG-12550. QExplicitlySharedDataPointer is excessively
used in XmlPatterns code. This forumate cyclic loops in some situation.
This fix replace the shared data pointer with normal C++ pointer to
break the loop.

Task-number: QTBUG-12550
Reviewed-by: Tomi Vihria
src/xmlpatterns/schema/qnamespacesupport.cpp
src/xmlpatterns/schema/qnamespacesupport_p.h
src/xmlpatterns/schema/qxsdcomplextype.cpp
src/xmlpatterns/schema/qxsdcomplextype_p.h
src/xmlpatterns/schema/qxsdelement.cpp
src/xmlpatterns/schema/qxsdelement_p.h
src/xmlpatterns/schema/qxsdschemaparser.cpp
src/xmlpatterns/schema/qxsdschemaparser_p.h
src/xmlpatterns/schema/qxsdschemaparser_setup.cpp
tests/auto/xmlpatternsschemats/TESTSUITE/updateSuite.sh