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

Gtk: Ensure handler is not null in connector before using it #2194

Merged

Conversation

cwensley
Copy link
Member

When (re) creating windows and controls events could still be forwarded to these controls even when the actual .NET object no longer exists. In this case, the connector's Handle will be null. We need to check for null on every event callback that uses the connector object which uses a weak reference to the handler.

Fixes #1812
Fixes #1757

@cwensley cwensley added the bug label Apr 24, 2022
@cwensley cwensley added this to the 2.6.2 milestone Apr 24, 2022
@cwensley cwensley merged commit 47f92c2 into picoe:develop Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant