From 069f09c43c523cb197a6a92a2d556e2ca68ca581 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 29 Jul 2020 17:18:03 +0530 Subject: [PATCH] Move wlc destructor to just before the functions are unloaded --- glfw/wl_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/wl_init.c b/glfw/wl_init.c index 3064f46e2..12d41af0f 100644 --- a/glfw/wl_init.c +++ b/glfw/wl_init.c @@ -792,7 +792,6 @@ int _glfwPlatformInit(void) void _glfwPlatformTerminate(void) { - glfw_wlc_destroy(); _glfwTerminateEGL(); if (_glfw.wl.egl.handle) { @@ -803,6 +802,7 @@ void _glfwPlatformTerminate(void) glfw_xkb_release(&_glfw.wl.xkb); glfw_dbus_terminate(&_glfw.wl.dbus); + glfw_wlc_destroy(); if (_glfw.wl.cursor.handle) { _glfw_dlclose(_glfw.wl.cursor.handle);