SDL_free - Man Page
Free allocated memory.
Synopsis
#include <SDL3/SDL_stdinc.h> void SDL_free(void *mem);
Description
The pointer is no longer valid after this call and cannot be dereferenced anymore.
If mem is NULL, this function does nothing.
Function Parameters
- mem
a pointer to allocated memory, or NULL.
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL 3.2.0.
See Also
Referenced By
SDL_calloc(3), SDL_free_func.3type(3), SDL_LoadWAV(3), SDL_LoadWAV_IO(3), SDL_malloc(3), SDL_realloc(3).
SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS