1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

Merge pull request #992 from absolutelynothelix/xcb_request_check_memory_leaks

This commit is contained in:
Yuxuan Shui 2023-01-13 16:52:22 +00:00 committed by GitHub
commit 7ac80f980d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1464,6 +1464,7 @@ static void handle_pending_updates(EV_P_ struct session *ps) {
auto e = xcb_request_check(ps->c, xcb_grab_server_checked(ps->c));
if (e) {
log_fatal_x_error(e, "failed to grab x server");
free(e);
return quit(ps);
}
@ -1499,6 +1500,7 @@ static void handle_pending_updates(EV_P_ struct session *ps) {
e = xcb_request_check(ps->c, xcb_ungrab_server_checked(ps->c));
if (e) {
log_fatal_x_error(e, "failed to ungrab x server");
free(e);
return quit(ps);
}
@ -1823,6 +1825,7 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
XCB_EVENT_MASK_PROPERTY_CHANGE}));
if (e) {
log_error_x_error(e, "Failed to setup root window event mask");
free(e);
}
xcb_prefetch_extension_data(ps->c, &xcb_render_id);