Pārlūkot izejas kodu

Wayland: Properly unref all xkbcommon objects.

Emmanuel Gil Peyrot 9 gadi atpakaļ
vecāks
revīzija
be935debe9
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. 4 0
      src/wl_init.c

+ 4 - 0
src/wl_init.c

@@ -643,6 +643,10 @@ void _glfwPlatformTerminate(void)
     _glfwTerminateJoysticksLinux();
     _glfwTerminateJoysticksLinux();
     _glfwTerminateThreadLocalStoragePOSIX();
     _glfwTerminateThreadLocalStoragePOSIX();
 
 
+    xkb_keymap_unref(_glfw.wl.xkb.keymap);
+    xkb_state_unref(_glfw.wl.xkb.state);
+    xkb_context_unref(_glfw.wl.xkb.context);
+
     if (_glfw.wl.cursorTheme)
     if (_glfw.wl.cursorTheme)
         wl_cursor_theme_destroy(_glfw.wl.cursorTheme);
         wl_cursor_theme_destroy(_glfw.wl.cursorTheme);
     if (_glfw.wl.cursorSurface)
     if (_glfw.wl.cursorSurface)