Fix double free occuring when unloading the intermission patches
- Dec 07, 2020
-
-
SteelT authored
Fix double free occuring when unloading the intermission patches due to the same patch being cached twice
-
Crashes occurred because Y_UnloadData
would unload the same patch twice, which was the result of Y_SetNullBonus
copying "MISSING"
to bstruct->patch
, thus making the same patch be assigned to two different variables when caching the patch.
Fix double free occuring when unloading the intermission patches due to the same patch being cached twice