From ffb8bc5b29c3cf40cdb5578886d11dcbfd59a74e Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 8 Nov 2021 00:19:27 +0000 Subject: [PATCH] backend: xrender: fix accidentally deleted refcount decrement Thanks, @tryone144 Signed-off-by: Yuxuan Shui --- src/backend/xrender/xrender.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/xrender/xrender.c b/src/backend/xrender/xrender.c index 5f170208..473eeba6 100644 --- a/src/backend/xrender/xrender.c +++ b/src/backend/xrender/xrender.c @@ -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); }