diff options
| author | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-13 08:16:01 +0100 |
|---|---|---|
| committer | Fabrice <fabrice@schaub-dev.xyz> | 2026-02-13 08:16:01 +0100 |
| commit | 952712bdcc2cc3c055f0c8b306e9479d7a299a5a (patch) | |
| tree | 0ad1a846a8eede7d43fb8774efeae47f9a4b309d /src | |
| parent | f1649953a4c24075389237416d10dc513d21da14 (diff) | |
always free
Diffstat (limited to 'src')
| -rw-r--r-- | src/text.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.cc b/src/text.cc index 2ad57f3..3bd3405 100644 --- a/src/text.cc +++ b/src/text.cc @@ -260,7 +260,7 @@ bool wayc_text_mesh_init(struct text_mesh_s* mesh, const char* text, wayc_defer_cond(mi_free(indices), success, true); struct glyph_s* glyphs = (struct glyph_s*)mi_malloc(bytes_glyphs); - wayc_defer_cond(mi_free(glyphs), success, true); + wayc_defer(mi_free(glyphs)); enum font_error_e err = wayc_font_raster_text(font, text, text_len, glyphs, text_len); |
