aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/font.c b/font.c
index a21cf937..d7460e21 100644
--- a/font.c
+++ b/font.c
@@ -41,7 +41,7 @@ static void __attribute__((destructor))
fini(void)
{
while (tll_length(font_cache) > 0)
- font_destroy(tll_front(font_cache).font);
+ font_destroy(tll_pop_front(font_cache).font);
mtx_destroy(&ft_lock);
FT_Done_FreeType(ft_lib);