sdlFree function stdinc
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.
\param mem a pointer to allocated memory, or NULL.
\threadsafety It is safe to call this function from any thread.
\since This function is available since SDL 3.2.0.
\sa SDL_malloc \sa SDL_calloc \sa SDL_realloc
extern SDL_DECLSPEC void SDLCALL SDL_free(void *mem)
Implementation
void sdlFree(Pointer<NativeType> mem) {
final sdlFreeLookupFunction = _libSdl
.lookupFunction<
Void Function(Pointer<NativeType> mem),
void Function(Pointer<NativeType> mem)
>('SDL_free');
return sdlFreeLookupFunction(mem);
}