summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview/qgraphicsanchorlayout.cpp
diff options
context:
space:
mode:
authorEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-05-28 20:26:21 (GMT)
committerEduardo M. Fleury <eduardo.fleury@openbossa.org>2009-07-22 18:04:08 (GMT)
commit12913735db966558ac255780aaee0ec0d1096a8c (patch)
treec586f0b80f36f97bdf2df2dbcea60f235714bd91 /src/gui/graphicsview/qgraphicsanchorlayout.cpp
parent4bd165d6849311b948ed87b9a51c7318ae6bd748 (diff)
downloadQt-12913735db966558ac255780aaee0ec0d1096a8c.zip
Qt-12913735db966558ac255780aaee0ec0d1096a8c.tar.gz
Qt-12913735db966558ac255780aaee0ec0d1096a8c.tar.bz2
QGraphicsAnchorLayout: Delete internal layout edges in destructor
The internal layout anchors were leaking, now we delete them when destroying the layout. Signed-off-by: Eduardo M. Fleury <eduardo.fleury@openbossa.org>
Diffstat (limited to 'src/gui/graphicsview/qgraphicsanchorlayout.cpp')
-rw-r--r--src/gui/graphicsview/qgraphicsanchorlayout.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/graphicsview/qgraphicsanchorlayout.cpp b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
index d91b4ab..b3dcdd0 100644
--- a/src/gui/graphicsview/qgraphicsanchorlayout.cpp
+++ b/src/gui/graphicsview/qgraphicsanchorlayout.cpp
@@ -60,6 +60,8 @@ QGraphicsAnchorLayout::~QGraphicsAnchorLayout()
delete item;
}
}
+
+ d->deleteLayoutEdges();
}
void QGraphicsAnchorLayout::anchor(QGraphicsLayoutItem *firstItem,