(input_overlay.c) Prevent dereference after null check

This commit is contained in:
twinaphex 2016-05-26 17:35:46 +02:00
parent e297da1b71
commit 142dd82067

View File

@ -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);