A view doesn't own the scene it renders, because scenes can be in multiple views. So if the test function doesn't delete `anotherScene`, no-one else does, either. To fix, allocate it on the stack (like `scene`), and not on the heap. Amends the start of the public history. Pick-to: 6.8 6.5 5.15 Change-Id: I2f0bfc5dfafd68a347553335f5ac5f2d081d56ad Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit 0617d177ac9d584ed6e5298e0fbe1a78ea682ce9) 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%