MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / LodePNGIText_cleanup

Function LodePNGIText_cleanup

samples/shared/lodepng.cpp:2799–2813  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2797}
2798
2799static void LodePNGIText_cleanup(LodePNGInfo* info)
2800{
2801 size_t i;
2802 for(i = 0; i < info->itext_num; i++)
2803 {
2804 string_cleanup(&info->itext_keys[i]);
2805 string_cleanup(&info->itext_langtags[i]);
2806 string_cleanup(&info->itext_transkeys[i]);
2807 string_cleanup(&info->itext_strings[i]);
2808 }
2809 lodepng_free(info->itext_keys);
2810 lodepng_free(info->itext_langtags);
2811 lodepng_free(info->itext_transkeys);
2812 lodepng_free(info->itext_strings);
2813}
2814
2815static unsigned LodePNGIText_copy(LodePNGInfo* dest, const LodePNGInfo* source)
2816{

Callers 2

lodepng_clear_itextFunction · 0.85
lodepng_info_cleanupFunction · 0.85

Calls 2

string_cleanupFunction · 0.85
lodepng_freeFunction · 0.85

Tested by

no test coverage detected