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:
parent
1dea294051
commit
ffb8bc5b29
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue