SDL_free - Man Page

Free allocated memory.

Header File

Defined in SDL3/SDL_stdinc.h

Synopsis

#include "SDL3/SDL.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

·(3), SDL_malloc(3), ·(3), SDL_calloc(3), ·(3), SDL_realloc(3)

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.2 Simple Directmedia Layer SDL3 FUNCTIONS