diff --git a/tests/threads.c b/tests/threads.c index a2caea56..988d0eba 100644 --- a/tests/threads.c +++ b/tests/threads.c @@ -146,6 +146,10 @@ int main(void) for (i = 0; i < count; i++) thrd_join(threads[i].id, &result); + for (i = 0; i < count; i++) + glfwDestroyWindow(threads[i].window); + + glfwTerminate(); exit(EXIT_SUCCESS); }