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