Free the whole list when freeing

This commit is contained in:
Ray Chason
2022-11-23 12:05:04 -08:00
committed by PatR
parent 913a7dc0e0
commit 5a80a437a2
+1 -1
View File
@@ -1155,7 +1155,7 @@ purge_custom_entries(enum graphics_sets which_set)
{ {
struct symset_customization *gdc = &g.sym_customizations[which_set]; struct symset_customization *gdc = &g.sym_customizations[which_set];
struct customization_detail *details = gdc->details, *next; struct customization_detail *details = gdc->details, *next;
if (details) { while (details) {
next = details->next; next = details->next;
if (gdc->custtype == custom_ureps) { if (gdc->custtype == custom_ureps) {
if (details->content.urep.u.utf8str) if (details->content.urep.u.utf8str)