Free an RGB surface.
Defined in SDL_surface.h, but apps should only #include "SDL.h"
!
void SDL_FreeSurface(SDL_Surface * surface);
surface | the SDL_Surface to free. |
It is safe to pass NULL to this function.
This function is available since SDL 2.0.0.
CategoryAPI, CategoryAPIFunction