From a4c6fb79c0b865d67dcbefdff5d22fcfb8af74d8 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 12 Dec 2005 10:54:41 +0000 Subject: [PATCH] Matched SDL_AllowRW and SDL_FreeRW calls in SDL_rwops.c ... --- src/file/SDL_rwops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/file/SDL_rwops.c b/src/file/SDL_rwops.c index 41e3f69c4..1f3717629 100644 --- a/src/file/SDL_rwops.c +++ b/src/file/SDL_rwops.c @@ -74,7 +74,7 @@ static int stdio_close(SDL_RWops *context) /* 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_writeconst(SDL_RWops *context, const void *ptr, int size, int num static int mem_close(SDL_RWops *context) { if ( context ) { - free(context); + SDL_FreeRW(context); } return(0); }