diff --git a/kitty/window_logo.c b/kitty/window_logo.c index 7b952dde6..1429327bb 100644 --- a/kitty/window_logo.c +++ b/kitty/window_logo.c @@ -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; }