Define a tail pointer for the glyph list

Use the tail pointer to add new glyphs, avoiding the need to traverse
the list.
This commit is contained in:
Ray Chason
2022-12-06 18:46:43 -05:00
parent e556af78ec
commit b9ef6e6bb9
3 changed files with 8 additions and 17 deletions

View File

@@ -1200,6 +1200,7 @@ purge_custom_entries(enum graphics_sets which_set)
details = next;
}
gdc->details = 0;
gdc->details_end = 0;
if (gdc->customization_name) {
free((genericptr_t) gdc->customization_name);
gdc->customization_name = 0;