diff options
Diffstat (limited to 'platform/desktop/desktop.c')
| -rw-r--r-- | platform/desktop/desktop.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/platform/desktop/desktop.c b/platform/desktop/desktop.c index 8de6d8d..56c8dee 100644 --- a/platform/desktop/desktop.c +++ b/platform/desktop/desktop.c @@ -186,7 +186,13 @@ void ty_platform_deinit(void) ty_log_info("deinitializing GLFW..."); glfwDestroyWindow(p.win); + + // If asan is used, it will give a ton of false positives here, but won't + // spit out any errors if memory is actually leaked here, so I just leak it + // to avoid the errors. +#ifndef __SANITIZE_ADDRESS__ glfwTerminate(); +#endif } void ty_platform_frame(ty_Image img) |
