Frees an SDL_RWops structure allocated by SDL_AllocRW.
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.
#include "SDL_rwops.h" void dumb_example() { SDL_RWops *rw=SDL_AllocRW(); if(rw==NULL) return; SDL_FreeRW(rw); }
Sdl Class | Tao.Sdl Namespace | SDL_AllocRW