Skip to content

Commit

Permalink
xrender: fix leak in deinit
Browse files Browse the repository at this point in the history
and check should we actually free something

fixes at least #960
  • Loading branch information
absolutelynothelix committed Dec 21, 2022
1 parent 48d3a0b commit 3dd828b
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 @@ -576,7 +576,7 @@ static void deinit(backend_t *backend_data) {
xcb_render_free_picture(xd->base.c, xd->alpha_pict[i]);
}
xcb_render_free_picture(xd->base.c, xd->target);
for (int i = 0; i < 2; i++) {
for (int i = 0; i < 3; i++) {
xcb_render_free_picture(xd->base.c, xd->back[i]);
xcb_free_pixmap(xd->base.c, xd->back_pixmap[i]);
}
Expand Down

0 comments on commit 3dd828b

Please sign in to comment.