forked from old/legacy-imlib2
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:
parent
2f077c4835
commit
be906e1416
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue