diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-10-26 06:11:30 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-10-26 06:11:30 (GMT) |
commit | 5dedd5ee9c88c075c6ffeb09526088d93671efaa (patch) | |
tree | 0f1e1e1eea0432ff7b23feabc7b9f39aa7cdc7eb | |
parent | cbb1b29d397c063fc3bcae04c5b062f20cbd12c5 (diff) | |
download | Qt-5dedd5ee9c88c075c6ffeb09526088d93671efaa.zip Qt-5dedd5ee9c88c075c6ffeb09526088d93671efaa.tar.gz Qt-5dedd5ee9c88c075c6ffeb09526088d93671efaa.tar.bz2 |
Make sure we clear our list of dependant anchors when we are destroyed.
-rw-r--r-- | src/declarative/fx/qfxitem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxitem.cpp b/src/declarative/fx/qfxitem.cpp index 317a284..abf20d6 100644 --- a/src/declarative/fx/qfxitem.cpp +++ b/src/declarative/fx/qfxitem.cpp @@ -1343,6 +1343,7 @@ QFxItem::~QFxItem() if (anchor->d_func()->item && anchor->d_func()->item->parentItem() != this) //child will be deleted anyway anchor->d_func()->updateOnComplete(); } + d->dependantAnchors.clear(); delete d->_anchorLines; d->_anchorLines = 0; delete d->_anchors; d->_anchors = 0; } |