| 685 | } |
| 686 | |
| 687 | void 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 | |
| 706 | GrowString GrowString::operator+(char *str) { |
| 707 | *this += str; |
no outgoing calls
no test coverage detected