diff options
author | mread <qt-info@nokia.com> | 2011-08-26 11:07:31 (GMT) |
---|---|---|
committer | mread <qt-info@nokia.com> | 2011-08-26 11:13:56 (GMT) |
commit | a4eae8a44ca38739755ba8994251e2b120878ec8 (patch) | |
tree | bc6c578625c841f6cd4d4c9bdb3560614744e8af /src/xmlpatterns/expr/qevaluationcache_p.h | |
parent | 338346ceae99ec0d8f7227af12333d63393992be (diff) | |
download | Qt-a4eae8a44ca38739755ba8994251e2b120878ec8.zip Qt-a4eae8a44ca38739755ba8994251e2b120878ec8.tar.gz Qt-a4eae8a44ca38739755ba8994251e2b120878ec8.tar.bz2 |
Fixed use of deleted object in XmlPatterns EvaluationCache
This problem was shown up by the Ilta-Sanomat QML app on Symbian.
Changes to the EvaluationCache class in
23267553627ac3c4cbcd918283bee8e665deeff9 meant that it was now trying
to access the declaration object after it had been deleted.
This change takes the data needed from the declaration object (1 bool)
and stores that instead
Task-number: QTTH-1492
Reviewed-by: Honglei Zhang
Diffstat (limited to 'src/xmlpatterns/expr/qevaluationcache_p.h')
-rw-r--r-- | src/xmlpatterns/expr/qevaluationcache_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xmlpatterns/expr/qevaluationcache_p.h b/src/xmlpatterns/expr/qevaluationcache_p.h index 6080157..77d9c11 100644 --- a/src/xmlpatterns/expr/qevaluationcache_p.h +++ b/src/xmlpatterns/expr/qevaluationcache_p.h @@ -124,7 +124,7 @@ namespace QPatternist private: static DynamicContext::Ptr topFocusContext(const DynamicContext::Ptr &context); - const VariableDeclaration *m_declaration; + bool m_declarationUsedByMany; /** * This variable must not be called m_slot. If it so, a compiler bug on * HP-UX-aCC-64 is triggered in the constructor initializor. See the |