mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-28 03:01:57 +02:00
free then clear hash tables
This commit is contained in:
@@ -94,9 +94,9 @@ void
|
|||||||
free_window_logo_table(WindowLogoTable **table) {
|
free_window_logo_table(WindowLogoTable **table) {
|
||||||
WindowLogoItem *current, *tmp;
|
WindowLogoItem *current, *tmp;
|
||||||
HASH_ITER(hh_id, (*table)->by_id, current, tmp) {
|
HASH_ITER(hh_id, (*table)->by_id, current, tmp) {
|
||||||
HASH_DELETE(hh_id, (*table)->by_id, current);
|
|
||||||
free_window_logo(*table, ¤t);
|
free_window_logo(*table, ¤t);
|
||||||
}
|
}
|
||||||
HASH_CLEAR(hh_path, (*table)->by_path);
|
HASH_CLEAR(hh_path, (*table)->by_path);
|
||||||
|
HASH_CLEAR(hh_id, (*table)->by_id);
|
||||||
free(*table); *table = NULL;
|
free(*table); *table = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user