IMG.c
changeset 78 337263a596dc
parent 62 dbc075a7e0b1
child 89 9a1b32277af8
     1.1 --- a/IMG.c	Sun Feb 09 00:12:56 2003 +0000
     1.2 +++ b/IMG.c	Sun Feb 09 19:20:10 2003 +0000
     1.3 @@ -95,6 +95,8 @@
     1.4  	/* See whether or not this data source can handle seeking */
     1.5  	if ( SDL_RWseek(src, 0, SEEK_CUR) < 0 ) {
     1.6  		IMG_SetError("Can't seek in this data source");
     1.7 +		if(freesrc)
     1.8 +			SDL_RWclose(src);
     1.9  		return(NULL);
    1.10  	}
    1.11