2D: Prevent AxisHandler from holding a dangling pointer


This prevents a crash when AxisRenderer::handlePolish() tries to delete
the dangling pointer.

Fixes: QTBUG-149930
Pick-to: 6.12 6.11
Change-Id: I0438bc3d94085c8a49114d6250c1dbe53e3e388a
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
commitdc4768865d618ba4ff9a123f8e7c51ea90d08a02
parent9544cd541e96765639ca74cc1bb0861f5bccbcdb
authorSze Howe Koh <szehowe.koh@gmail.com>
committerSze Howe Koh <szehowe.koh@gmail.com>
commit timeMon, 7 Sep 2026 13:16:22 +0000