Prevent unwanted nullptr warning when destroying an OpenGL enabled chart
Make the GLWidget::cleanup() function idempotent so it can be called
more than once. More precisely, by QOpenGLContext::aboutToBeDestroyed
signal and a GLWidget destructor
Fixes: QTBUG-145091
Change-Id: I6ec1eb7acaca69075bc71d1bfd0ae8fb1ac0034c
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
| commit | 22cb082db54791a828ddcaea93c0783036efe4ef |
| parent | 8d8164cca980d5d346ab55ef759cf56cd083c4d8 |
| author | Pier-Yves Lessard <py.lessard@gmail.com> |
| committer | Pier-Yves Lessard <py.lessard@gmail.com> |
| commit time | Fri, 20 Mar 2026 10:06:29 -0400 |