Commit 54349c76 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Matched SDL_AllowRW and SDL_FreeRW calls in SDL_rwops.c ...

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401205
parent 53f29a2c
...@@ -74,7 +74,7 @@ static int stdio_close(SDL_RWops *context) ...@@ -74,7 +74,7 @@ static int stdio_close(SDL_RWops *context)
/* WARNING: Check the return value here! */ /* WARNING: Check the return value here! */
fclose(context->hidden.stdio.fp); fclose(context->hidden.stdio.fp);
} }
free(context); SDL_FreeRW(context);
} }
return(0); return(0);
} }
...@@ -145,7 +145,7 @@ static int mem_writeconst(SDL_RWops *context, const void *ptr, int size, int num ...@@ -145,7 +145,7 @@ static int mem_writeconst(SDL_RWops *context, const void *ptr, int size, int num
static int mem_close(SDL_RWops *context) static int mem_close(SDL_RWops *context)
{ {
if ( context ) { if ( context ) {
free(context); SDL_FreeRW(context);
} }
return(0); return(0);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment