This commit is contained in:
Kovid Goyal
2024-07-13 14:04:21 +05:30
parent a0b6f3c4b3
commit f7d81409ae
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}
}

View File

@@ -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); }