From 8a10ffb33f1721eb142e82efd358cf7bf5ab832e Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Mon, 6 Jul 2020 17:46:28 +0000 Subject: [PATCH] Clean up damage refinery on exit --- src/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index f6e6774..4e8a6e8 100644 --- a/src/main.c +++ b/src/main.c @@ -794,7 +794,10 @@ int main(int argc, char* argv[]) screencopy_stop(&self.screencopy); - if (self.buffer) nvnc_fb_unref(self.buffer); + if (self.buffer) { + damage_refinery_destroy(&self.damage_refinery); + nvnc_fb_unref(self.buffer); + } pixman_region_fini(&self.current_damage);