Free the whole list when freeing
This commit is contained in:
+1
-1
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user