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

windows: fix WebViewEnvironment dispose crash #2433

Conversation

GooRingX
Copy link
Contributor

webViewEnvironment.dispose() will cause a wild pointer crash. The reason is that after WebViewEnvironment is destroyed, the event callbacks such as add_ProcessInfosChanged access the WebViewEnvironment this pointer, causing a wild pointer crash. Fix: Cancel the callback registration of related events during destruction

@pichillilorenzo
Copy link
Owner

I'm not able to reproduce the issue, do you have a minimal code example to test? Thanks

@pichillilorenzo
Copy link
Owner

Ok it seems to be caused when a WebViewEnvironment is disposed while being used by a WebView.

@pichillilorenzo pichillilorenzo changed the base branch from master to v6.2.0-beta.3 November 28, 2024 10:36
@pichillilorenzo pichillilorenzo merged commit 4c16860 into pichillilorenzo:v6.2.0-beta.3 Nov 28, 2024
@pichillilorenzo
Copy link
Owner

@all-contributors please add @GooRingX for code

Copy link
Contributor

@pichillilorenzo

I've put up a pull request to add @GooRingX! 🎉

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