mirror of
https://github.com/libretro/beetle-lynx-libretro.git
synced 2024-11-23 08:10:55 +00:00
Fix malloc/delete mismatch
This commit is contained in:
parent
48664059b5
commit
da956cc125
15
libretro.cpp
15
libretro.cpp
@ -545,8 +545,19 @@ void retro_get_system_av_info(struct retro_system_av_info *info)
|
||||
|
||||
void retro_deinit()
|
||||
{
|
||||
delete surf;
|
||||
surf = NULL;
|
||||
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