diff options
author | Honglei Zhang <honglei.zhang@nokia.com> | 2011-04-19 14:29:27 (GMT) |
---|---|---|
committer | Honglei Zhang <honglei.zhang@nokia.com> | 2011-04-19 14:29:27 (GMT) |
commit | 986ab48f1128bdd56fa408fca8f4a564e874dd4d (patch) | |
tree | 46d5e20dbf23fbbc0d95b0a4bf111f301a45fa99 /src/xmlpatterns/expr/qevaluationcache_p.h | |
parent | 6dcb0028e44cba2a00c2fb867fb1757ad5b1a254 (diff) | |
download | Qt-986ab48f1128bdd56fa408fca8f4a564e874dd4d.zip Qt-986ab48f1128bdd56fa408fca8f4a564e874dd4d.tar.gz Qt-986ab48f1128bdd56fa408fca8f4a564e874dd4d.tar.bz2 |
Fix memory leak bugs in XmlPatterns
In XmlPatterns implementation, QExplicitlySharedDataPointer and
QSharedData classes are widely used. The over use of these classes
has cuased couple of cyclic references. Some codes are refactored
to use plain C++ pointer to break the reference loop.
Task-number: QTBUG-15191
Reviewed-by: Laszlo Agocs and Sami Merila
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 86aeaf8..af4cfa0 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::Ptr m_declaration; + const VariableDeclaration* m_declaration; /** * 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 |