MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / color_tree_cleanup

Function color_tree_cleanup

src/lodepng.cpp:2929–2940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2927}
2928
2929static void color_tree_cleanup(ColorTree* tree)
2930{
2931 int i;
2932 for(i = 0; i < 16; i++)
2933 {
2934 if(tree->children[i])
2935 {
2936 color_tree_cleanup(tree->children[i]);
2937 lodepng_free(tree->children[i]);
2938 }
2939 }
2940}
2941
2942/*returns -1 if color not present, its index otherwise*/
2943static int color_tree_get(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsigned char a)

Callers 2

lodepng_convertFunction · 0.85
color_profile_cleanupFunction · 0.85

Calls 1

lodepng_freeFunction · 0.85

Tested by

no test coverage detected