forked from old/legacy-imlib2
parent
b55b892198
commit
8cb5f5dc04
|
@ -1148,9 +1148,12 @@ __imlib_LoadImage(const char *file, ImlibProgressFunction progress,
|
||||||
*er = LOAD_ERROR_OUT_OF_MEMORY;
|
*er = LOAD_ERROR_OUT_OF_MEMORY;
|
||||||
else if (errno == EMFILE)
|
else if (errno == EMFILE)
|
||||||
*er = LOAD_ERROR_OUT_OF_FILE_DESCRIPTORS;
|
*er = LOAD_ERROR_OUT_OF_FILE_DESCRIPTORS;
|
||||||
/* free the stuct we created */
|
if (*er != LOAD_ERROR_UNKNOWN)
|
||||||
__imlib_ConsumeImage(im);
|
{
|
||||||
return NULL;
|
/* free the stuct we created */
|
||||||
|
__imlib_ConsumeImage(im);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
errno = 0;
|
errno = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue