mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
Cleanup
This commit is contained in:
parent
3040d1da36
commit
eae2217c6d
@ -158,7 +158,7 @@ static void task_image_cleanup(nbio_handle_t *nbio)
|
|||||||
image->handle = NULL;
|
image->handle = NULL;
|
||||||
image->cb = NULL;
|
image->cb = NULL;
|
||||||
}
|
}
|
||||||
if (nbio->path && !string_is_empty(nbio->path))
|
if (!string_is_empty(nbio->path))
|
||||||
free(nbio->path);
|
free(nbio->path);
|
||||||
if (nbio->data)
|
if (nbio->data)
|
||||||
free(nbio->data);
|
free(nbio->data);
|
||||||
@ -372,8 +372,7 @@ error:
|
|||||||
free(t);
|
free(t);
|
||||||
if (nbio)
|
if (nbio)
|
||||||
{
|
{
|
||||||
if (nbio->path
|
if (!string_is_empty(nbio->path))
|
||||||
&& !string_is_empty(nbio->path))
|
|
||||||
free(nbio->path);
|
free(nbio->path);
|
||||||
free(nbio);
|
free(nbio);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user