From b055af044fd4454aa3aff75b39c5b53788b331d4 Mon Sep 17 00:00:00 2001 From: Denis Biryukov Date: Tue, 24 Mar 2015 13:31:05 +0300 Subject: [PATCH] Fix leak: ==16491== 2,399 (2,176 direct, 223 indirect) bytes in 1 blocks are definitely lost in loss record 64 of 67 ==16491== at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==16491== by 0x5682D0B: xkb_context_new (in /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0.0.0) ==16491== by 0x40B24B: _glfwPlatformInit (wl_init.c:556) ==16491== by 0x40612E: glfwInit (init.c:125) ==16491== by 0x4052AE: main (simple.c:49) --- src/wl_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wl_init.c b/src/wl_init.c index d44a128a3..407146416 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -627,6 +627,8 @@ void _glfwPlatformTerminate(void) } free(_glfw.wl.monitors); } + + xkb_context_unref(_glfw.wl.xkb.context); } const char* _glfwPlatformGetVersionString(void)