RustRoguelike
RustRoguelike copied to clipboard
Mingw64 generate_bare_map SegFault
Mingw64 segfaults on generate_bare_map due to a free that occurs when the function ends.
This function calls into wfc-rs, so it is likely some kind of double free situation. Perhaps the update to the wfc.h code in the latest commit, which fixes a leak (presumably by freeing some memory) free something that Rust then double-frees.
Look at the commit to wfc, where frees occur, and see if any of that memory is allocated in Rust. Consider something like asking Rust to ignore the memory if so.