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:
commit
7ac80f980d
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue