From 66942ab913aa51def095db82af194eb51b887ab7 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 11 Dec 2021 20:58:14 +0000 Subject: [PATCH] display: Clean up transformed damage region This fixes a memory leak --- src/display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/display.c b/src/display.c index b76c014..3af3eaa 100644 --- a/src/display.c +++ b/src/display.c @@ -122,5 +122,6 @@ void nvnc_display_feed_buffer(struct nvnc_display* self, struct nvnc_fb* fb, resampler_feed(self->resampler, fb, &transformed_damage, nvnc_display__on_resampler_done, self); + pixman_region_fini(&transformed_damage); pixman_region_fini(&refined_damage); }