sm64coopdx/src
Isaac0-dev 5303357146
Some checks are pending
Build coop / build-linux (push) Waiting to run
Build coop / build-steamos (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
fix custom level data memory leak (#1256)
this fixes the giant memory leak that happens due to not freeing custom level data when closing a lobby.
`DynOS_Lvl_ModShutdown` was not freeing the data nodes for the level data, it was only freeing the surface data.
To fix this, I have made it use `DynOS_Gfx_Free` to free the `GfxData` correctly. I found that the level script VM will still be trying to warp from the custom level after `DynOS_Lvl_ModShutdown` is executed, so I added a schedule to simply free it the next frame.
I've made it force the level script to change to a vanilla level during mod shutdown. This is critical to ensure the VM doesn't continue to read from a freed level script.

Removed the explicit deletion of data nodes in `DynOS_MovtexQC_ModShutdown` because `DynOS_Gfx_Free` already frees that, and it's actually data owned by the data node, so it's more appropriate in `DynOS_Gfx_Free`
2026-06-15 11:22:03 +10:00
..
audio Fix inconsistencies with tabs and remove trailing whitespaces 2026-05-26 23:51:58 +02:00
buffers Threaded Audio Support (#176) 2024-11-26 15:53:09 +10:00
engine Fix syncId for objects spawned from level script 2026-05-30 01:28:17 +02:00
game fix custom level data memory leak (#1256) 2026-06-15 11:22:03 +10:00
goddard Fix inconsistencies with tabs and remove trailing whitespaces 2026-05-26 23:51:58 +02:00
menu Add Ability to Hide HUD on Act Select Screen (#880) 2025-07-29 11:42:55 +10:00
pc fix custom level data memory leak (#1256) 2026-06-15 11:22:03 +10:00