Fix memory leak in drm.c

(cherry picked from commit 3cae2a2c01)
This commit is contained in:
project-repo 2024-08-11 16:39:39 +00:00 committed by Simon Zeni
parent 03f06207f0
commit 52834f29ad

View file

@ -396,6 +396,7 @@ void finish_drm_resources(struct wlr_drm_backend *drm) {
struct wlr_drm_plane *plane = &drm->planes[i];
drm_plane_finish_surface(plane);
wlr_drm_format_set_finish(&plane->formats);
free(plane->cursor_sizes);
}
free(drm->planes);