// Free frees a palette created with AllocPalette. // Palette (https://wiki.libsdl.org/SDL_FreePalette) func (palette *Palette) Free() { C.SDL_FreePalette((*C.SDL_Palette)(unsafe.Pointer(palette))) }
func (p *Palette) Free() { C.SDL_FreePalette(p.c()) }