wayland: fix decorations unref crash

This commit is contained in:
ninja- 2020-06-30 19:41:57 +02:00
parent 2ef7618da5
commit b5a2bb18cf

View File

@ -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);