forked from old/legacy-imlib2
if u run out of memory - actually free stuff
SVN revision: 22948
This commit is contained in:
parent
fbef280324
commit
96ba0f2f8c
|
@ -224,9 +224,9 @@ load(ImlibImage * im, ImlibProgressFunction progress,
|
|||
{
|
||||
fprintf(stderr, "imlib2-tiffloader: Out of memory\n");
|
||||
|
||||
if (!rast)
|
||||
if (rast)
|
||||
_TIFFfree(rast);
|
||||
if (!im->data)
|
||||
if (im->data)
|
||||
{
|
||||
free(im->data);
|
||||
im->data = NULL;
|
||||
|
|
Loading…
Reference in New Issue