From e63975ca6406dc1596b3a21082c58426a9cf5613 Mon Sep 17 00:00:00 2001 From: Alexei Podtelezhnikov Date: Sat, 29 Nov 2025 11:29:44 -0500 Subject: [PATCH] * src/base/ftutil.c (FT_List_Finalize): Delay reading 'data'. Fixes #1376. --- src/base/ftutil.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/base/ftutil.c b/src/base/ftutil.c index 0b7382627..f83c43948 100644 --- a/src/base/ftutil.c +++ b/src/base/ftutil.c @@ -424,11 +424,10 @@ while ( cur ) { FT_ListNode next = cur->next; - void* data = cur->data; if ( destroy ) - destroy( memory, data, user ); + destroy( memory, cur->data, user ); FT_FREE( cur ); cur = next;