Cleanup
This commit is contained in:
parent
9db91a92c3
commit
e799defcb8
|
@ -199,14 +199,15 @@ static void task_image_load_free_internal(nbio_handle_t *nbio)
|
||||||
{
|
{
|
||||||
struct nbio_image_handle *image = (struct nbio_image_handle*)nbio->data;
|
struct nbio_image_handle *image = (struct nbio_image_handle*)nbio->data;
|
||||||
|
|
||||||
if (image) {
|
if (!image)
|
||||||
|
return;
|
||||||
|
|
||||||
image_transfer_free(image->handle, nbio->image_type);
|
image_transfer_free(image->handle, nbio->image_type);
|
||||||
|
|
||||||
image->handle = NULL;
|
image->handle = NULL;
|
||||||
image->cb = NULL;
|
image->cb = NULL;
|
||||||
|
|
||||||
free(image);
|
free(image);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int cb_nbio_generic(nbio_handle_t *nbio, size_t *len)
|
static int cb_nbio_generic(nbio_handle_t *nbio, size_t *len)
|
||||||
|
|
Loading…
Reference in New Issue