Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport queued_ltr_backports] qgs3daxis: Correctly delete axis or cube in the destructor #57933

Merged

Conversation

qgis-bot
Copy link
Collaborator

Backport #57927
Authored by: @ptitjano

In the desctrutor, `mAxisRoot` or `mCubeRoot` may have already been
freed by Qt. In that case, a `isEnabled()` call will create a
segmentation fault. By checking the axis mode, this allows to properly
know which objects needs to be deleted.

Fixes commit b578f1e
@github-actions github-actions bot added this to the 3.40.0 milestone Jun 28, 2024
@nyalldawson nyalldawson reopened this Jun 28, 2024
@nyalldawson nyalldawson merged commit 1fdbc82 into queued_ltr_backports Jun 28, 2024
36 checks passed
@nyalldawson nyalldawson deleted the backport-57927-to-queued_ltr_backports branch June 28, 2024 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants