aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-10-27 15:53:46 +0200
committerAlexander Orzechowski <alex@ozal.ski>2023-11-15 01:37:59 +0000
commit4932e0d347fee665aed7026bc14f50275dd5137f (patch)
treef617043ef184854756b7040116561e3a69cd33e3
parent86b2cac9219cf98e4e8b62df9bc94ea334a9b15e (diff)
backend/drm: ensure plane surfaces are cleaned up on shutdown
Right now this is done "by chance" because we disable all CRTCs on shutdown. However, we'll stop doing this. Plus, if disabling a CRTC fails, we don't cleanup properly.
-rw-r--r--backend/drm/drm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index f7c33690..e8a6f5c6 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -328,6 +328,7 @@ void finish_drm_resources(struct wlr_drm_backend *drm) {
for (size_t i = 0; i < drm->num_planes; ++i) {
struct wlr_drm_plane *plane = &drm->planes[i];
+ drm_plane_finish_surface(plane);
wlr_drm_format_set_finish(&plane->formats);
}