SDL_FreeRW
Name
SDL_FreeRW -- Frees an SDL_RWops structure allocated by SDL_AllocRW
Synopsis
#include "SDL_rwops.h" void SDL_FreeRW(SDL_RWops *context);
Description
SDL_FreeRW frees an SDL_RWops structure previously allocated by SDL_AllocRW. Only use it on memory allocated by SDL_AllocRW. Any extra memory allocated during creation of the RWops is not freed by SDL_FreeRW; the programmer must be responsible for it.
Return Value
Returns no value.
Example
#include "SDL_rwops.h"
void dumb_example()
{
SDL_RWops *rw=SDL_AllocRW();
if(rw==NULL) return;
SDL_FreeRW(rw);
}
