aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2018-03-17 17:04:51 +0100
committerDominique Martinet <asmadeus@codewreck.org>2018-03-22 21:25:41 +0100
commitd9a3c6694281fae6f720f91230e8ec27df8fd82b (patch)
tree74c5e5f3f7913aac2b726bcdfe4e9bb5aefc0b31 /rootston
parentde955a0f63e17e259b7966bf7c32d605f96d52cc (diff)
rootston/output: fix leak in damage_from_surface
Diffstat (limited to 'rootston')
-rw-r--r--rootston/output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rootston/output.c b/rootston/output.c
index 4146e3e2..22c0d7ed 100644
--- a/rootston/output.c
+++ b/rootston/output.c
@@ -680,6 +680,7 @@ static void damage_from_surface(struct wlr_surface *surface,
}
pixman_region32_translate(&damage, box.x, box.y);
wlr_output_damage_add(output->damage, &damage);
+ pixman_region32_fini(&damage);
} else {
pixman_box32_t *extents =
pixman_region32_extents(&surface->current->surface_damage);