pub unsafe extern "C" fn SDL_FreeSurface(surface: *mut SDL_Surface)
Expand description

Frees the surface.

This doesn’t necessarily free any memory. Surfaces use ref counting for some things, and this will only actually free the memory if the ref count goes to 0. Also, they can be formed using borrowed memory, and in that case freeing the surface will not free the borrowed pixel memory itself.