From 217d539ff74d14be8322347979cd7205610fb504 Mon Sep 17 00:00:00 2001 From: kayomn Date: Mon, 3 Oct 2022 23:39:03 +0100 Subject: [PATCH] Fix calling SDL_DestroySemaphore on mutex --- src/sys.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys.zig b/src/sys.zig index b880fef..f583974 100644 --- a/src/sys.zig +++ b/src/sys.zig @@ -613,7 +613,7 @@ pub fn runGraphics(comptime Errors: anytype, run: GraphicsRunner(Errors)) Errors defer { ext.SDL_DestroyThread(event_loop.file_system_thread); - ext.SDL_DestroySemaphore(event_loop.file_system_mutex); + ext.SDL_DestroyMutex(event_loop.file_system_mutex); ext.SDL_DestroySemaphore(event_loop.file_system_semaphore); }