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

backend: xrender: fix accidentally deleted refcount decrement

Thanks, @tryone144

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2021-11-08 00:19:27 +00:00
parent 1dea294051
commit ffb8bc5b29
No known key found for this signature in database
GPG key ID: D3A4405BE6CC17F4

View file

@ -473,6 +473,7 @@ static void release_image(backend_t *base, void *image) {
struct xrender_image *img = image;
xcb_free_pixmap(base->c, img->rounded_rectangle);
img->rounded_rectangle = XCB_NONE;
img->base.inner->refcount -= 1;
if (img->base.inner->refcount == 0) {
release_image_inner(base, (void *)img->base.inner);
}