From 8dba4b6c0bc9fbf231cabcb3755ec621bc480926 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Mon, 11 Sep 2023 23:41:52 +1000 Subject: [PATCH] [client] x11: fix cleanup if XIQueryVersion fails --- client/displayservers/X11/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/displayservers/X11/x11.c b/client/displayservers/X11/x11.c index 046f1ef9..77143c93 100644 --- a/client/displayservers/X11/x11.c +++ b/client/displayservers/X11/x11.c @@ -476,7 +476,7 @@ static bool x11Init(const LG_DSInitParams params) if (XIQueryVersion(x11.display, &major, &minor) != Success) { DEBUG_ERROR("Failed to query the XInput version"); - return false; + goto fail_window; } DEBUG_INFO("X11 XInput %d.%d in use", major, minor);