mirror of
https://github.com/artizirk/wdisplays.git
synced 2026-10-11 05:48:22 +03:00
Free the head surface when a head is destroyed
This commit is contained in:
1 parent
a5cb779a7f
commit
8c9ceab799
1 file changed
+3
@@ -420,6 +420,9 @@ static void wd_head_destroy(struct wd_head *head) {
|
||||
free(head->render);
|
||||
head->render = NULL;
|
||||
}
|
||||
if (head->surface != NULL) {
|
||||
cairo_surface_destroy(head->surface);
|
||||
}
|
||||
struct wd_mode *mode, *mode_tmp;
|
||||
wl_list_for_each_safe(mode, mode_tmp, &head->modes, link) {
|
||||
zwlr_output_mode_v1_destroy(mode->wlr_mode);
|
||||
|
||||
Reference in new issue
Block a user