This commit is contained in:
twinaphex 2017-09-30 06:23:23 +02:00
parent 3040d1da36
commit eae2217c6d

View File

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