MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / Destroy

Method Destroy

Descent3/localization.cpp:687–704  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685}
686
687void GrowString::Destroy(void) {
688 if (root.string_data)
689 mem_free(root.string_data);
690 root.string_data = NULL;
691
692 tbufferinfo *c, *next;
693 c = next = root.next;
694 while (c) {
695 next = c->next;
696 if (c->string_data)
697 mem_free(c->string_data);
698 mem_free(c);
699 c = next;
700 }
701 root.next = NULL;
702 root.string_data = NULL;
703 curr = &root;
704}
705
706GrowString GrowString::operator+(char *str) {
707 *this += str;

Callers 2

CreateStringTableFunction · 0.45
LoadStringFileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected