x.c: fix memory leak

This commit is contained in:
Michael Stapelberg 2016-01-09 13:13:57 +01:00
parent 71476b03e3
commit ada71471c1

View File

@ -1080,6 +1080,8 @@ void x_push_changes(Con *con) {
xcb_warp_pointer(conn, XCB_NONE, root, 0, 0, 0, 0, mid_x, mid_y); xcb_warp_pointer(conn, XCB_NONE, root, 0, 0, 0, 0, mid_x, mid_y);
xcb_change_window_attributes(conn, root, XCB_CW_EVENT_MASK, (uint32_t[]){ROOT_EVENT_MASK}); xcb_change_window_attributes(conn, root, XCB_CW_EVENT_MASK, (uint32_t[]){ROOT_EVENT_MASK});
} }
free(pointerreply);
} }
warp_to = NULL; warp_to = NULL;
} }