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

Function free_image

win/share/tileset.c:159–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159static void
160free_image(struct TileSetImage *image)
161{
162 if (image->pixels)
163 free((genericptr_t) image->pixels), image->pixels = NULL;
164 if (image->indexes)
165 free((genericptr_t) image->indexes), image->indexes = NULL;
166 if (image->image_desc)
167 free((genericptr_t) image->image_desc), image->image_desc = NULL;
168}
169
170const struct TileImage *
171get_tile(unsigned tile_index)

Callers 1

read_tilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected