diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index 08ed62451..ce59c90a7 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -25,6 +25,7 @@ bool init_drm_renderer(struct wlr_drm_backend *drm, if (renderer->allocator == NULL) { wlr_log(WLR_ERROR, "Failed to create allocator"); wlr_renderer_destroy(renderer->wlr_rend); + renderer->wlr_rend = NULL; return false; }