diff options
| author | Marc Mutz <marc.mutz@kdab.com> | 2016-09-26 21:37:49 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@kdab.com> | 2016-09-27 06:30:29 +0000 |
| commit | 77eafa8d890bc80813159ad29ba3a4e1909866fd (patch) | |
| tree | eab70333b6c26eff64e28104d31a9bb8b362f9ca /src/gui/opengl/qopenglshaderprogram.cpp | |
| parent | fcf4767bffd201a0b8da1ed6f5425e3f5ce0e4ff (diff) | |
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>
Diffstat (limited to 'src/gui/opengl/qopenglshaderprogram.cpp')
0 files changed, 0 insertions, 0 deletions
