1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

fix memory leak when updating single line

This commit is contained in:
Ailin Nemui 2022-06-13 00:15:13 +02:00
parent ae8ec99d5c
commit 67aa2baf62

View File

@ -419,7 +419,7 @@ static void view_remove_cache(TEXT_BUFFER_VIEW_REC *view, LINE_REC *line,
cache = g_hash_table_lookup(view->cache->line_cache, line);
if (cache != NULL) {
g_free(cache);
line_cache_destroy(NULL, cache);
g_hash_table_remove(view->cache->line_cache, line);
}
}