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

Function string_cleanup

depends/lodepng/lodepng.cpp:297–300  ·  view source on GitHub ↗

free string pointer and set it to NULL*/

Source from the content-addressed store, hash-verified

295
296/*free string pointer and set it to NULL*/
297static void string_cleanup(char** out) {
298 lodepng_free(*out);
299 *out = NULL;
300}
301
302/*also appends null termination character*/
303static char* alloc_string_sized(const char* in, size_t insize) {

Callers 3

LodePNGText_cleanupFunction · 0.85
LodePNGIText_cleanupFunction · 0.85
lodepng_clear_iccFunction · 0.85

Calls 1

lodepng_freeFunction · 0.85

Tested by

no test coverage detected