mirror of
https://github.com/libretro/libretro-prboom.git
synced 2024-11-23 07:59:39 +00:00
Fix double-free on failed load
This commit is contained in:
parent
0d729b7a5c
commit
2487001e31
@ -659,8 +659,10 @@ failed:
|
||||
if (environ_cb)
|
||||
environ_cb(RETRO_ENVIRONMENT_SET_MESSAGE, (void*)&msg);
|
||||
}
|
||||
if (screen_buf)
|
||||
if (screen_buf) {
|
||||
free(screen_buf);
|
||||
screen_buf = NULL;
|
||||
}
|
||||
I_SafeExit(-1);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user