src/file/SDL_rwops.c
changeset 1202 0748fbb272e7
parent 1078 e2ef6b7001fd
child 1269 905d5b482f2a
     1.1 --- a/src/file/SDL_rwops.c	Mon Dec 12 09:26:32 2005 +0000
     1.2 +++ b/src/file/SDL_rwops.c	Mon Dec 12 10:54:41 2005 +0000
     1.3 @@ -74,7 +74,7 @@
     1.4  			/* WARNING:  Check the return value here! */
     1.5  			fclose(context->hidden.stdio.fp);
     1.6  		}
     1.7 -		free(context);
     1.8 +		SDL_FreeRW(context);
     1.9  	}
    1.10  	return(0);
    1.11  }
    1.12 @@ -145,7 +145,7 @@
    1.13  static int mem_close(SDL_RWops *context)
    1.14  {
    1.15  	if ( context ) {
    1.16 -		free(context);
    1.17 +		SDL_FreeRW(context);
    1.18  	}
    1.19  	return(0);
    1.20  }