Skip to content

Commit

Permalink
Matched SDL_AllowRW and SDL_FreeRW calls in SDL_rwops.c ...
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Dec 12, 2005
1 parent 80edcd4 commit a4c6fb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/file/SDL_rwops.c
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit a4c6fb7

Please sign in to comment.