backend.c: do not try to explicitly clean up the libinput backend

Since libinput is an optional dependency the libinput backend is possibly undeclared.
wlr_backend_destroy(backend) below will clean up the child libinput backend if any.
This commit is contained in:
MarkusVolk 2021-10-27 14:25:25 +02:00 committed by Simon Ser
parent cbedbd0fc0
commit ebe3cfaceb
1 changed files with 0 additions and 1 deletions

View File

@ -463,7 +463,6 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display) {
attempt_drm_backend(display, backend, multi->session); attempt_drm_backend(display, backend, multi->session);
if (!primary_drm) { if (!primary_drm) {
wlr_log(WLR_ERROR, "Failed to open any DRM device"); wlr_log(WLR_ERROR, "Failed to open any DRM device");
wlr_backend_destroy(libinput);
wlr_session_destroy(multi->session); wlr_session_destroy(multi->session);
wlr_backend_destroy(backend); wlr_backend_destroy(backend);
return NULL; return NULL;