From 6b3d9febf64b4083ec6b3a464aac7d4dcd3df5ea Mon Sep 17 00:00:00 2001 From: Barry Kane Date: Sun, 13 Nov 2022 18:26:36 +0000 Subject: [PATCH] Linked lists now destroy the pathList of an area. - Modified destroyList to destroy pathLists in areas. --- src/linkedlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linkedlist.c b/src/linkedlist.c index bbe17ef..a11f9b3 100644 --- a/src/linkedlist.c +++ b/src/linkedlist.c @@ -20,7 +20,7 @@ static inline void deallocateListNode(listNode * node, listDataType type) } case AREA: { -// destroyList(node->data.area->paths); + destroyList(&(node->data.area->pathList)); free(node->data.area); free(node); break;