diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-10-07 10:49:18 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-10-22 10:20:14 +0000 |
commit | 0e888ae1a10750c7f5e644da8f774376f0c8da6a (patch) | |
tree | 88242aebd632241a07465810bd4c234d323d0994 /src | |
parent | 686c44a69b13f6e884dd2b6d9991f4cd94597c5a (diff) |
tst_QGraphicsItem: plug remaining leaks
Store QGraphicsItems that are either not added to a scene or
removed from it again and that are also not children of other
items - iow: those that were leaked, even on successful runs
of the tests, in either a QScopedPointer, or, where that'd
cause too much churn due to adding of .data() calls, back the
pointer by a stack-allocated object.
This fixes the remaining leaks reported by GCC 6.2.1's ASan on
successful runs of tests/auto/widgets/graphicsview/qgraphicsitem.
Change-Id: I61c3a1cd39b9e96e83c5d7b8cf392e0b26ecbaf0
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Sérgio Martins <sergio.martins@kdab.com>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions