(task_image.c) Prevent null pointer dereference

This commit is contained in:
Twinaphex 2016-05-19 02:09:56 +02:00
parent 033bc60939
commit 67e1e5a9d0

View File

@ -404,7 +404,9 @@ error:
void rarch_task_image_load_free(retro_task_t *task)
{
nbio_handle_t *nbio = (nbio_handle_t*)task->state;
nbio_handle_t *nbio = task ? (nbio_handle_t*)task->state : NULL;
if (!nbio)
return;
rarch_task_image_load_free_internal(nbio);
}