Repository navigation
fix(linux-capture): free the xcb error reply of failed X requests - #2054
Merged
Merged
Conversation
zackees
enabled auto-merge
October 24, 2026 05:12
This was referenced Oct 24, 2026
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Oct 24, 2026
…ust#2060) test_obs_scripting_lua_host_macos and test_obs_scripting_python_host_macos both create and remove ../PlugIns next to the test binaries. ctest runs them in parallel, so one removes the folder while the other checks it, and test_dirs fails with 0 != 1 (merge groups for obs-rust#2048 and obs-rust#2054, 2026-10-24). A shared RESOURCE_LOCK keeps them from running at the same time.
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.
Fixes #2053
When an X request fails (for example, the window is gone), xcb returns a malloc'd
xcb_generic_error_tthat the caller must free. This PR frees it at all five places in the XComposite capture that receive one:xcomp_window_exists(the per-source safety-net round trip),xcomp_property_sync,xcomp_top_level_windows,xcomp_create_pixmap(which now also frees its geometry reply) andxcb_xcursor_offset_win. ASan flagged three of them in run 40061643300; I found the other two by checking every place the plugin collects an xcb error.test_xcomposite_error_repliesqueries a nonexistent window 1000 times. In local./unittestthe heap grows by 48064 and 48000 bytes, against a limit of 8000, so both cases fail../lintpasses.Tier 2 only: the linux-capture plugin has no Rust port.