mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02:00
...
This commit is contained in:
@@ -120,6 +120,6 @@ void
|
|||||||
free_glyph_properties_hash_table(GLYPH_PROPERTIES_MAP_HANDLE *map_) {
|
free_glyph_properties_hash_table(GLYPH_PROPERTIES_MAP_HANDLE *map_) {
|
||||||
glyph_props_map **mapref = (glyph_props_map**)map_;
|
glyph_props_map **mapref = (glyph_props_map**)map_;
|
||||||
if (*mapref) {
|
if (*mapref) {
|
||||||
vt_clear(*mapref); free(*mapref); *mapref = NULL;
|
vt_cleanup(*mapref); free(*mapref); *mapref = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ _screen_garbage_collect_hyperlink_pool(Screen *screen, bool preserve_hyperlinks_
|
|||||||
vt_cleanup(&pool->map); vt_cleanup(&pool->idmap);
|
vt_cleanup(&pool->map); vt_cleanup(&pool->idmap);
|
||||||
remap_hyperlink_ids(screen, preserve_hyperlinks_in_history, &map, &clone);
|
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);
|
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
|
void
|
||||||
screen_garbage_collect_hyperlink_pool(Screen *screen) { _screen_garbage_collect_hyperlink_pool(screen, true); }
|
screen_garbage_collect_hyperlink_pool(Screen *screen) { _screen_garbage_collect_hyperlink_pool(screen, true); }
|
||||||
|
|||||||
Reference in New Issue
Block a user