InsanityBringer / PiccuEngine

Descent 3: Piccu Engine, a version of the game Descent 3 focused on quality-of-life improvements.
GNU General Public License v3.0
97 stars 6 forks source link

fix inconsistent alloc style for gs_xlates #2

Closed zardoru closed 2 months ago

zardoru commented 2 months ago

this variable was causing a crash after doing the following steps without asan:

effectively the bug was a double-free because gs_xlates wasn't being set to null after deallocating, but using mem_malloc and new inconsistently didn't help. this fixes the crash!