MCPcopy Create free account
hub / github.com/DentonW/DevIL / ilClosePal

Function ilClosePal

DevIL/src-IL/src/il_stack.cpp:284–293  ·  view source on GitHub ↗

Closes Palette and frees all memory associated with it.

Source from the content-addressed store, hash-verified

282
283//! Closes Palette and frees all memory associated with it.
284ILAPI void ILAPIENTRY ilClosePal(ILpal *Palette)
285{
286 if (Palette == NULL)
287 return;
288 if (!ilIsValidPal(Palette))
289 return;
290 ifree(Palette->Palette);
291 ifree(Palette);
292 return;
293}
294
295
296ILimage *iGetBaseImage()

Callers 2

iSavePngInternalFunction · 0.85

Calls 1

ilIsValidPalFunction · 0.85

Tested by

no test coverage detected