diff --git a/src/ui/buffer.c b/src/ui/buffer.c index 448c11ae..6a7f7818 100644 --- a/src/ui/buffer.c +++ b/src/ui/buffer.c @@ -114,6 +114,7 @@ buffer_remove_entry_by_id(ProfBuff buffer, const char *const id) while (entries) { ProfBuffEntry *entry = entries->data; if (entry->id && (g_strcmp0(entry->id, id) == 0)) { + _free_entry(entry); buffer->entries = g_slist_delete_link(buffer->entries, entries); } entries = g_slist_next(entries);