Thu Apr 27 13:41:11 GMT 2000

(gilbertt)

Free up some RAM and close the filehandle when interrupted.


SVN revision: 2560
This commit is contained in:
Tom Gilbert 2000-04-27 12:27:51 +00:00
parent 2f077c4835
commit be906e1416
2 changed files with 12 additions and 0 deletions

View File

@ -2898,3 +2898,10 @@ Thu Apr 27 04:22:06 GMT 2000
Return 2 from interrupted loaders.
_______________________________________________
Thu Apr 27 13:41:11 GMT 2000
(gilbertt)
Free up some RAM and close the filehandle when interrupted.

View File

@ -154,6 +154,11 @@ load(ImlibImage *im, ImlibProgressFunction progress, char progress_granularity,
the current row, since it's incomplete. */
im->data = (DATA32 *) realloc(im->data, sizeof(DATA32) * w * i);
im->h = i;
DGifCloseFile(gif);
for (i = 0; i < h; i++) {
free(rows[i]);
}
free(rows);
return 2;
}
last_y = i;