From 7c179212777a91e8552bc28c98ba109caba2038b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 2 Jul 2023 16:10:27 +0900 Subject: [PATCH] [ui] Remove view from hash table when pruning Fixes a segfault after removing some widgets. Otherwise, it seems pruning is working. --- libs/ui/imui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ui/imui.c b/libs/ui/imui.c index 7e2631f23..2423e03a0 100644 --- a/libs/ui/imui.c +++ b/libs/ui/imui.c @@ -243,6 +243,7 @@ prune_objects (imui_ctx_t *ctx) s = &(*s)->next; } else { ECS_DelEntity (ctx->csys.reg, (*s)->entity); + Hash_Del (ctx->tab, (*s)->label + (*s)->key_offset); imui_state_free (ctx, *s); } }