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); }