mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
(input_overlay.c) Prevent dereference after null check
This commit is contained in:
parent
e297da1b71
commit
142dd82067
@ -195,7 +195,10 @@ static void input_overlay_free_overlays(input_overlay_t *ol)
|
||||
|
||||
static void input_overlay_load_active(input_overlay_t *ol, float opacity)
|
||||
{
|
||||
if (ol->iface && ol->iface->load)
|
||||
if (!ol)
|
||||
return;
|
||||
|
||||
if (ol->iface->load)
|
||||
ol->iface->load(ol->iface_data, ol->active->load_images,
|
||||
ol->active->load_images_size);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user