Amazingly simple SDL_image patch

SDL_Load_RW() won’t free a RWops as instructed if it isn’t seekable. This
fixes that behaviour.

–ryan.

diff -u -r1.11 IMG.c
— IMG.c 2002/01/04 20:48:51 1.11
+++ IMG.c 2003/02/08 14:35:16
@@ -95,6 +95,8 @@
/* See whether or not this data source can handle seeking */
if ( SDL_RWseek(src, 0, SEEK_CUR) < 0 ) {
IMG_SetError(“Can’t seek in this data source”);

  •   if(freesrc)
    
  •   	SDL_RWclose(src);
      return(NULL);
    
    }

SDL_Load_RW() won’t free a RWops as instructed if it isn’t seekable. This
fixes that behaviour.

Thanks! It’s in CVS.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment