From 5dedd5ee9c88c075c6ffeb09526088d93671efaa Mon Sep 17 00:00:00 2001 From: Martin Jones Date: Mon, 26 Oct 2009 16:11:30 +1000 Subject: Make sure we clear our list of dependant anchors when we are destroyed. --- src/declarative/fx/qfxitem.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v0.12