summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-09-26 21:37:49 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-09-27 06:30:34 +0000
commitb827b8ccf7311d8bc3551501a5faa6d456da052b (patch)
tree8107766c62b64ffc84a284469e129300f1957fd3 /src
parent77eafa8d890bc80813159ad29ba3a4e1909866fd (diff)
Plug memleaks in tst_QGridLayout
In setMinAndMaxSize(), QLayout::removeItem() doesn't actually delete the removed item. We have to do that ourselves (RAII not necessary, since the spacer is owned by the layout until we remove it). In distributeMultiCell(), allocate the QStyle subclass on the stack so the compiler cleans it up properly on all exit paths (was: unconditional leak). Change-Id: I24f8f11af2bfc5abf78f9aab0139dcfe0187402b Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions