diff options
| -rw-r--r-- | vulkaninfo/vulkaninfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vulkaninfo/vulkaninfo.h b/vulkaninfo/vulkaninfo.h index bfa8d0e0..060ef2ce 100644 --- a/vulkaninfo/vulkaninfo.h +++ b/vulkaninfo/vulkaninfo.h @@ -503,7 +503,9 @@ static void AppCreateXcbWindow(AppInstance &inst) { if (conn_error) { fprintf(stderr, "XCB failed to connect to the X server due to error:%d.\n", conn_error); fflush(stderr); + xcb_disconnect(inst.xcb_connection); inst.xcb_connection = nullptr; + return; } setup = xcb_get_setup(inst.xcb_connection); |
