if u run out of memory - actually free stuff

SVN revision: 22948
This commit is contained in:
Carsten Haitzler 2006-05-28 00:05:50 +00:00
parent fbef280324
commit 96ba0f2f8c
1 changed files with 2 additions and 2 deletions

View File

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