aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/drm/renderer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c
index a3bcc943..9edf7632 100644
--- a/backend/drm/renderer.c
+++ b/backend/drm/renderer.c
@@ -81,6 +81,7 @@ bool init_drm_surface(struct wlr_drm_surface *surf,
surf->back = NULL;
}
gbm_surface_destroy(surf->gbm);
+ surf->gbm = NULL;
}
wlr_egl_destroy_surface(&surf->renderer->egl, surf->egl);