Clean up damage refinery on exit

pull/55/head
Andri Yngvason 2020-07-06 17:46:28 +00:00
parent 3be37d24bd
commit 1406ce1cf8
1 changed files with 4 additions and 1 deletions

View File

@ -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);