[ui] Remove view from hash table when pruning

Fixes a segfault after removing some widgets. Otherwise, it seems
pruning is working.
This commit is contained in:
Bill Currie 2023-07-02 16:10:27 +09:00
parent 3aceccf4aa
commit 7c17921277

View file

@ -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);
}
}