- free-surface! surfaceprocedure
Free the memory of the sdl2:surface's underlying struct. surface's pointer will be set to null (see struct-null?). It is safe to call this procedure with managed or unmanaged sdl2:surfaces. It is safe (but has no effect) to free a struct record multiple times.
See SDL_FreeSurface.
Note: if surface was created using create-rgb-surface-from, then the pixel data is not freed.