From 685f2a5f91775b0b5f8d0bb7377d7351392d65a7 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 8 Sep 2018 19:38:51 +0200 Subject: [PATCH] Wayland: Close forgotten timerfd on terminate. --- src/wl_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wl_init.c b/src/wl_init.c index c19184d0..820a9142 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -1142,6 +1142,9 @@ void _glfwPlatformTerminate(void) wl_display_flush(_glfw.wl.display); wl_display_disconnect(_glfw.wl.display); } + + if (_glfw.wl.timerfd >= 0) + close(_glfw.wl.timerfd); } const char* _glfwPlatformGetVersionString(void)