qt6-bb10/tests/auto/widgets/kernel/qboxlayout
Marc Mutz 77eafa8d89 Plug memleaks in tst_QBoxLayout
In sizeConstraints(), QLayout::takeAt(), as the name suggests, doesn't
actually delete the item. We have to do that ourselves.

Likewise, in replaceWidget(), QLayout::replaceWidget() also doesn't
delete the affected item, but returns it. That's spectacularly bad API
design, but the leak is easy to fix: just delete the return value.

Change-Id: I8dcbc59898949eabce766cda2c0edae2e1f2799e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
2016-09-27 06:30:29 +00:00
..
.gitignore
qboxlayout.pro
tst_qboxlayout.cpp Plug memleaks in tst_QBoxLayout 2016-09-27 06:30:29 +00:00