Skip to content

Commit

Permalink
x: don't abort in release for double freeing a xrender picture
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
  • Loading branch information
yshui committed Jul 4, 2023
1 parent b08255f commit 9d5dfd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/x.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ void x_clear_picture_clip_region(struct x_connection *c, xcb_render_picture_t pi
void x_free_picture(struct x_connection *c, xcb_render_picture_t p) {
assert(p != XCB_NONE);
auto cookie = xcb_render_free_picture(c->c, p);
set_cant_fail_cookie(c, cookie);
set_debug_cant_fail_cookie(c, cookie);
}

enum {
Expand Down

0 comments on commit 9d5dfd3

Please sign in to comment.