mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-24 19:56:06 +00:00
(task_image.c) Prevent null pointer dereference
This commit is contained in:
parent
033bc60939
commit
67e1e5a9d0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user