The QGraphicsWidget didn't have a parent, and wasn't deleted by the test function, so it leaked. To fix, hold it in unique_ptr. While we're at it, and so that it doesn't look too out of place, also hold the other parent-less QGraphicsWidget in a unique_ptr. The action, OTOH, has a parent, so we don't need to change something there. Amends the start of the public history. Pick-to: 6.8 6.5 5.15 Change-Id: I0597b7ecd293ac54981df9e276c38c385ac811c7 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> (cherry picked from commit 92c1413c087c5435858f10c0e0c878bc25211b8f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%