MCPcopy Create free account
hub / github.com/DFHack/dfhack / LodePNGText_cleanup

Function LodePNGText_cleanup

depends/lodepng/lodepng.cpp:2884–2892  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2882}
2883
2884static void LodePNGText_cleanup(LodePNGInfo* info) {
2885 size_t i;
2886 for(i = 0; i != info->text_num; ++i) {
2887 string_cleanup(&info->text_keys[i]);
2888 string_cleanup(&info->text_strings[i]);
2889 }
2890 lodepng_free(info->text_keys);
2891 lodepng_free(info->text_strings);
2892}
2893
2894static unsigned LodePNGText_copy(LodePNGInfo* dest, const LodePNGInfo* source) {
2895 size_t i = 0;

Callers 2

lodepng_clear_textFunction · 0.85
lodepng_info_cleanupFunction · 0.85

Calls 2

string_cleanupFunction · 0.85
lodepng_freeFunction · 0.85

Tested by

no test coverage detected