mirror of
https://github.com/libretro/beetle-lynx-libretro.git
synced 2024-11-27 02:12:46 +00:00
Fix malloc/delete mismatch
This commit is contained in:
parent
48664059b5
commit
da956cc125
13
libretro.cpp
13
libretro.cpp
@ -545,8 +545,19 @@ void retro_get_system_av_info(struct retro_system_av_info *info)
|
||||
|
||||
void retro_deinit()
|
||||
{
|
||||
delete surf;
|
||||
if (surf)
|
||||
{
|
||||
if (surf->pixels16)
|
||||
free(surf->pixels16);
|
||||
surf->pixels16 = NULL;
|
||||
|
||||
if (surf->pixels)
|
||||
free(surf->pixels);
|
||||
surf->pixels = NULL;
|
||||
|
||||
free (surf);
|
||||
surf = NULL;
|
||||
}
|
||||
|
||||
libretro_supports_input_bitmasks = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user