mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
backend/x11: fix region not being actually used
The region variable was shadowed in an if block. As a result, in the outer block region was always XCB_NONE and was never destroyed (causing a memory leak on the server). Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
966e653935
commit
702eed5cbd
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ static bool output_commit_buffer(struct wlr_x11_output *output) {
|
|||
};
|
||||
}
|
||||
|
||||
xcb_xfixes_region_t region = xcb_generate_id(x11->xcb);
|
||||
region = xcb_generate_id(x11->xcb);
|
||||
xcb_xfixes_create_region(x11->xcb, region, rects_len, xcb_rects);
|
||||
|
||||
free(xcb_rects);
|
||||
|
|
Loading…
Reference in a new issue