Repository navigation
fix: prevent orphan leak in SetContentView - #52893
Merged
MarshallOfSound merged 1 commit intoAug 17, 2026
Merged
MarshallOfSound merged 1 commit into
MarshallOfSound merged 1 commit into
Conversation
SetContentView detached the previous content view with RemoveChildView, which removes it from the view hierarchy without destroying it. For views Electron owns (not owned_by_client), this leaked the view on every replacement. Use RemoveChildViewT to delete views we own, keep RemoveChildView for client owned views that must outlive removal, and clear content_view_/focused_view_ before removal so neither references a destroyed view. Co-authored-by: Geoffrey Ostosh <[email protected]>
5 of 6 tasks
MarshallOfSound
approved these changes
Aug 17, 2026
MarshallOfSound
enabled auto-merge (squash)
August 17, 2026 06:34
MarshallOfSound
deleted the
trop/42-x-y-bp-fix-prevent-orphan-leak-in-setcontentview-1786946645866
branch
August 17, 2026 07:50
|
Release Notes Persisted
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #52092
See that PR for details.
Notes: Fixed a memory leak when creating BrowserWindows.