summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns/data/qitem_p.h
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-05-10 13:14:16 (GMT)
committerKai Koehne <kai.koehne@nokia.com>2011-05-10 13:14:16 (GMT)
commitbaecfbc7f7e0ec7edddb74a2e760c685977e9084 (patch)
treef9071063e3b8dfcc1b2fcb3236be84fce5b17091 /src/xmlpatterns/data/qitem_p.h
parentbde58ad1e7d2b38d2882aaf869e93b0415128836 (diff)
parentf3ddd2d995b7485cdc1c3420d254499904ff9dd9 (diff)
downloadQt-baecfbc7f7e0ec7edddb74a2e760c685977e9084.zip
Qt-baecfbc7f7e0ec7edddb74a2e760c685977e9084.tar.gz
Qt-baecfbc7f7e0ec7edddb74a2e760c685977e9084.tar.bz2
Merge remote branch 'qt/4.8' into master-qml-staging
Conflicts: src/declarative/debugger/qdeclarativedebugserver.cpp src/plugins/qmltooling/qmltooling.pro
Diffstat (limited to 'src/xmlpatterns/data/qitem_p.h')
-rw-r--r--src/xmlpatterns/data/qitem_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmlpatterns/data/qitem_p.h b/src/xmlpatterns/data/qitem_p.h
index 8184b25..fb3866e 100644
--- a/src/xmlpatterns/data/qitem_p.h
+++ b/src/xmlpatterns/data/qitem_p.h
@@ -408,6 +408,10 @@ namespace QPatternist
inline void reset()
{
+ /* Delete the atomicValue if necessary*/
+ if(isAtomicValue() && !atomicValue->ref.deref())
+ delete atomicValue;
+
/* Note that this function should be equal to the default
* constructor. */
node.model = 0;