mirror of
https://github.com/glfw/glfw.git
synced 2025-10-02 21:00:57 +00:00
wayland: fix decorations unref crash
This commit is contained in:
parent
2ef7618da5
commit
b5a2bb18cf
@ -1310,7 +1310,8 @@ void _glfwPlatformTerminate(void)
|
||||
if (_glfw.wl.shm)
|
||||
wl_shm_destroy(_glfw.wl.shm);
|
||||
#ifdef WITH_DECORATION
|
||||
libdecor_unref(_glfw.wl.csd_context);
|
||||
if (_glfw.wl.csd_context)
|
||||
libdecor_unref(_glfw.wl.csd_context);
|
||||
#else
|
||||
if (_glfw.wl.viewporter)
|
||||
wp_viewporter_destroy(_glfw.wl.viewporter);
|
||||
|
Loading…
Reference in New Issue
Block a user