x: don't abort in release for double freeing a xrender picture

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2023-07-04 03:42:10 +01:00
parent 1307d9ec70
commit 6bd780f10f
No known key found for this signature in database
GPG Key ID: D3A4405BE6CC17F4
1 changed files with 1 additions and 1 deletions

View File

@ -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 {