Skip to content

xwayland: fix memory leak - #1096

Merged
mahkoh merged 1 commit into
masterfrom
jorth/xwayland-memory-leak
Jul 15, 2026
Merged

xwayland: fix memory leak#1096
mahkoh merged 1 commit into
masterfrom
jorth/xwayland-memory-leak

Conversation

@mahkoh

@mahkoh mahkoh commented Jul 15, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 15, 2026 15:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes an Xwayland-related memory leak by ensuring the X11 window wrapper is fully torn down when the underlying wl_surface is destroyed, preventing lingering references in the compositor’s Xwayland window tracking.

Changes:

  • Replace partial cleanup (tl_destroy + data.window.set(None)) with Xwindow::destroy() on wl_surface destruction.
  • Ensure teardown path breaks reference loops and removes the Xwindow from the state’s Xwayland window map, addressing the likely leak source.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mahkoh
mahkoh merged commit 8411813 into master Jul 15, 2026
14 checks passed
@mahkoh
mahkoh deleted the jorth/xwayland-memory-leak branch July 15, 2026 16:24
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