Interrupt / delve-framework

Delve is a framework for writing Games in Zig and Lua. For those who value being cross platform and keeping things simple.
MIT License
203 stars 11 forks source link

Fix for OSX not detecting memory leaks when using a General Purpose Allocator #49

Closed Interrupt closed 1 month ago

Interrupt commented 1 month ago

Sokol seems to quit the app immediately after running the Sokol cleanup lifecycle even on OSX so it's easy to miss running a deinit on a GeneralPurposeAllocator if that's how the app was setup. This change adds a General Purpose Allocator inside of the Delve Framework's memory subsystem for us to use directly, and deinit is always called on that at the end of shutdown.

Interrupt commented 1 month ago

Also related to https://github.com/Interrupt/delve-framework/issues/42