Fix XmlListModel memory leak
authorAri Koivisto <ari.koivisto@gmail.com>
Wed, 3 Oct 2012 16:29:33 +0000 (19:29 +0300)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 14 Oct 2012 20:58:42 +0000 (22:58 +0200)
commit3c3f8dd7c6f2a681ed11e941568ecc569377c389
treedf7462a8f313355424c76b19221652dd187fd442
parentdf4020d9d2580a1a4790a43af689d2b5132cf1e8
Fix XmlListModel memory leak

This is a forward port of a memory leak fix committed to
Qt 4.8 (QTBUG-15191). The fix includes all changes except
changes to qitem_p.h which has changed in Qt 5.0. Additionally
fix qxmlquery autotest failure introduced in the original
Qt 4.8 patch.

Task-number: QTBUG-27357
Change-Id: Ia0e916d9d6bccea014d28920cef48d6e47e8f04f
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
src/xmlpatterns/expr/qdynamiccontextstore.cpp
src/xmlpatterns/expr/qdynamiccontextstore_p.h
src/xmlpatterns/expr/qevaluationcache_p.h
src/xmlpatterns/expr/qevaluationcache_tpl_p.h
src/xmlpatterns/expr/qletclause.cpp
tests/auto/qxmlquery/tst_qxmlquery.cpp
tests/auto/xmlpatternsdiagnosticsts/xmlpatternsdiagnosticsts.pro
tests/auto/xmlpatternsschemats/xmlpatternsschemats.pro
tests/auto/xmlpatternsxqts/xmlpatternsxqts.pro