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

Function free_text_buffer

win/X11/wintext.c:435–443  ·  view source on GitHub ↗

Free up allocated memory. */

Source from the content-addressed store, hash-verified

433
434/* Free up allocated memory. */
435void
436free_text_buffer(struct text_buffer *tb)
437{
438 free(tb->text);
439 tb->text = (char *) 0;
440 tb->text_size = 0;
441 tb->text_last = 0;
442 tb->num_lines = 0;
443}
444
445#ifdef GRAPHIC_TOMBSTONE
446

Callers 1

destroy_text_windowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected