summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns/data/qitem_p.h
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-05-16 08:51:25 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-05-16 08:51:25 (GMT)
commitf34edb5f7f5ecddf4602727b7a981fadc1d4d4b4 (patch)
treef0e171d6270255d50d0a225e67a4935c52c700f2 /src/xmlpatterns/data/qitem_p.h
parentf32438ffccd8728143b93399e7cd251e72d23b55 (diff)
parent7e4a9187bb11b794e45d95d2e9fae026d6b0d07d (diff)
downloadQt-f34edb5f7f5ecddf4602727b7a981fadc1d4d4b4.zip
Qt-f34edb5f7f5ecddf4602727b7a981fadc1d4d4b4.tar.gz
Qt-f34edb5f7f5ecddf4602727b7a981fadc1d4d4b4.tar.bz2
Merge branch '4.8' of scm.dev.nokia.troll.no:qt/qt into 4.8
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;