From f7d81409aef5fb8c677d4f26a48dc4945dc6563c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 13 Jul 2024 14:04:21 +0530 Subject: [PATCH] ... --- kitty/glyph-cache.c | 2 +- kitty/hyperlink.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/glyph-cache.c b/kitty/glyph-cache.c index 6d45371a7..9acdea974 100644 --- a/kitty/glyph-cache.c +++ b/kitty/glyph-cache.c @@ -120,6 +120,6 @@ void free_glyph_properties_hash_table(GLYPH_PROPERTIES_MAP_HANDLE *map_) { glyph_props_map **mapref = (glyph_props_map**)map_; if (*mapref) { - vt_clear(*mapref); free(*mapref); *mapref = NULL; + vt_cleanup(*mapref); free(*mapref); *mapref = NULL; } } diff --git a/kitty/hyperlink.c b/kitty/hyperlink.c index c10f49ff7..d702fd998 100644 --- a/kitty/hyperlink.c +++ b/kitty/hyperlink.c @@ -119,7 +119,7 @@ _screen_garbage_collect_hyperlink_pool(Screen *screen, bool preserve_hyperlinks_ vt_cleanup(&pool->map); vt_cleanup(&pool->idmap); remap_hyperlink_ids(screen, preserve_hyperlinks_in_history, &map, &clone); for (hyperlink_id_map_itr i = vt_first(&clone); !vt_is_end(i); i = vt_next(i)) free((char*)i.data->val); - vt_clear(&map); vt_clear(&clone); + vt_cleanup(&map); vt_cleanup(&clone); } void screen_garbage_collect_hyperlink_pool(Screen *screen) { _screen_garbage_collect_hyperlink_pool(screen, true); }