Open hizzlekizzle opened 1 year ago
Why it doesn't crash in RetroArch is surely pure luck (perhaps RetroArch doesn't call retro_unload_game, which is surely a bug). The core allocates my_av_info globally but then frees it locally; whether free
should be in retro_unload_game or retro_deinit is fairly a moot point; allocating my_av_info should be in retro_load_game or retro_init (depending on where free
is).
For whatever reason, this isn't (apparently) a problem in RetroArch but crashes in BizHawk and presumably other frontends.
So, presumably my_av_info doesn't need to be free'd until deinit instead of in retro_unload_game...?
original issue from BizHawk's repo: https://github.com/TASEmulators/BizHawk/issues/3250