MCPcopy Create free account
hub / github.com/NetHack/NetHack / free_tile

Function free_tile

win/share/tileset.c:259–267  ·  view source on GitHub ↗

Free a tile returned by stretch_tile */ Do NOT use this with tiles returned by get_tile */

Source from the content-addressed store, hash-verified

257/* Free a tile returned by stretch_tile */
258/* Do NOT use this with tiles returned by get_tile */
259void
260free_tile(struct TileImage *tile)
261{
262 if (tile != NULL) {
263 free(tile->indexes);
264 free(tile->pixels);
265 free(tile);
266 }
267}
268
269/* Return the greatest common divisor */
270static unsigned

Callers 1

vesa_InitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected