Skip to content

Commit

Permalink
xrender: fix leak in release_rounded_corner_cache
Browse files Browse the repository at this point in the history
calling wrong free function did nothing and produced ton of x errors

fixes at least yshui#892
  • Loading branch information
absolutelynothelix authored and FT-Labs committed Jan 23, 2023
1 parent f0f3a15 commit b811100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/xrender/xrender.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ release_rounded_corner_cache(backend_t *base, struct xrender_rounded_rectangle_c
assert(cache->refcount > 0);
cache->refcount--;
if (cache->refcount == 0) {
xcb_free_pixmap(base->c, cache->p);
xcb_render_free_picture(base->c, cache->p);
free(cache);
}
}
Expand Down

0 comments on commit b811100

Please sign in to comment.