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

Crash fix: Remove Concertina header mouse listener on destroy #1296

Closed
wants to merge 1 commit into from

Conversation

emezeske
Copy link

This fixes a crash bug where the header component (provided that it was owned by the caller, i.e. shouldTakeOwnership=false) has a dangling mouse listener pointing to "this," which is a PanelHolder that has been destroyed. We need to remove this listener when either the PanelHolder is destroyed, or a new custom header has been set. Otherwise, if that custom header is used again, mousing over it will SIGSEGV when the mouse listener is invoked.

This fixes a crash bug where the header component (provided that it was
owned by the caller, i.e. shouldTakeOwnership=false) has a dangling
mouse listener pointing to "this," which is a PanelHolder that has been
destroyed. We need to remove this listener when either the PanelHolder
is destroyed, or a new custom header has been set. Otherwise, if that
custom header is used again, mousing over it will SIGSEGv.
@reuk
Copy link
Member

reuk commented Nov 6, 2023

Thanks for reporting. This should be fixed in these commits:

884bb75
65b6c85

@reuk reuk closed this Nov 6, 2023
@emezeske
Copy link
Author

emezeske commented Nov 6, 2023

Woohoo, thanks, @reuk!

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.

2 participants