mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 18:37:50 +00:00
free then clear hash tables
This commit is contained in:
parent
14047588ae
commit
799881af2d
1 changed files with 1 additions and 1 deletions
|
|
@ -94,9 +94,9 @@ void
|
|||
free_window_logo_table(WindowLogoTable **table) {
|
||||
WindowLogoItem *current, *tmp;
|
||||
HASH_ITER(hh_id, (*table)->by_id, current, tmp) {
|
||||
HASH_DELETE(hh_id, (*table)->by_id, current);
|
||||
free_window_logo(*table, ¤t);
|
||||
}
|
||||
HASH_CLEAR(hh_path, (*table)->by_path);
|
||||
HASH_CLEAR(hh_id, (*table)->by_id);
|
||||
free(*table); *table = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue