diff options
Diffstat (limited to 'backend/x11/backend.c')
-rw-r--r-- | backend/x11/backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/x11/backend.c b/backend/x11/backend.c index fcaab618..5c5aa7e8 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -600,7 +600,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, if (!query_formats(x11)) { wlr_log(WLR_ERROR, "Failed to query supported DRM formats"); - return false; + goto error_event; } x11->drm_fd = -1; @@ -637,7 +637,7 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_display *display, #if HAVE_XCB_ERRORS if (xcb_errors_context_new(x11->xcb, &x11->errors_context) != 0) { wlr_log(WLR_ERROR, "Failed to create error context"); - return false; + goto error_event; } #endif |