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

Fix crash when calling .destroy() on a BrowserWindow #197

Merged
merged 1 commit into from
Dec 7, 2024

Conversation

dguenther
Copy link
Contributor

Fixes a crash that happens when calling .destroy() on a BrowserWindow with an electron-trpc handler attached. detachHandler can potentially be called with a destroyed window, which then causes a crash on accessing win.webContents.id. See #156 for a reproduction case.

Definitely open to alternate solutions here! Feel free to close this PR or push to the branch directly if you'd like any changes.

Closes #156

@1yasa
Copy link

1yasa commented Sep 11, 2024

+1

@jsonnull jsonnull force-pushed the fix-cleanup-subscriptions branch from 7cf07e2 to 6bf4183 Compare December 7, 2024 22:23
@jsonnull jsonnull merged commit 1c5caaa into jsonnull:main Dec 7, 2024
3 checks passed
@github-actions github-actions bot mentioned this pull request Dec 7, 2024
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.

App crashes with "Object has been destroyed" error
3 participants