Function SDL_free
pub unsafe extern "C" fn SDL_free(mem: *mut c_void)
Available on crate feature
dep_sdl3
only.Expand description
Free allocated memory.
The pointer is no longer valid after this call and cannot be dereferenced anymore.
If mem
is NULL, this function does nothing.
§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.