Mercurial > sdl-ios-xcode
changeset 1202:0748fbb272e7
Matched SDL_AllowRW and SDL_FreeRW calls in SDL_rwops.c ...
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 12 Dec 2005 10:54:41 +0000 |
parents | 718d00094f82 |
children | a67c8b2ae356 |
files | src/file/SDL_rwops.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/file/SDL_rwops.c Mon Dec 12 09:26:32 2005 +0000 +++ b/src/file/SDL_rwops.c Mon Dec 12 10:54:41 2005 +0000 @@ -74,7 +74,7 @@ /* WARNING: Check the return value here! */ fclose(context->hidden.stdio.fp); } - free(context); + SDL_FreeRW(context); } return(0); } @@ -145,7 +145,7 @@ static int mem_close(SDL_RWops *context) { if ( context ) { - free(context); + SDL_FreeRW(context); } return(0); }