diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-11-30 11:39:18 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-11-30 11:39:18 +0000 |
| commit | 7a4d1b1a6e2fa64b46d2c5f38b4e8762d850867d (patch) | |
| tree | ad5aad969cae5cbc1b30e7ace132767f0b6160ca | |
| parent | font: original -> requested (diff) | |
font: destructor: pop elements as we go
Otherwise we'll end up free:ing the same font over and over again.
| -rw-r--r-- | font.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
