Ensure wl_cursor_theme_destroy is called before it is released

Fix #2884
This commit is contained in:
Kovid Goyal 2020-07-29 17:13:00 +05:30
parent 67f60847ee
commit 35f821f6a1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

2
glfw/wl_init.c vendored
View File

@ -792,6 +792,7 @@ int _glfwPlatformInit(void)
void _glfwPlatformTerminate(void)
{
glfw_wlc_destroy();
_glfwTerminateEGL();
if (_glfw.wl.egl.handle)
{
@ -810,7 +811,6 @@ void _glfwPlatformTerminate(void)
if (_glfw.wl.cursorSurface)
wl_surface_destroy(_glfw.wl.cursorSurface);
glfw_wlc_destroy();
if (_glfw.wl.subcompositor)
wl_subcompositor_destroy(_glfw.wl.subcompositor);
if (_glfw.wl.compositor)