From cee92b0a708320d0d317d8a7ecc4742923f2a7dc Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 19 Jun 2024 15:27:51 +0200 Subject: [PATCH] Use variable name in buffer_remove_entry() We assign it just above. --- src/ui/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/buffer.c b/src/ui/buffer.c index ab474956..f9a7892b 100644 --- a/src/ui/buffer.c +++ b/src/ui/buffer.c @@ -145,7 +145,7 @@ buffer_remove_entry(ProfBuff buffer, int entry) GSList* node = g_slist_nth(buffer->entries, entry); ProfBuffEntry* e = node->data; buffer->lines -= e->_lines; - _free_entry(node->data); + _free_entry(e); buffer->entries = g_slist_delete_link(buffer->entries, node); }