# HG changeset patch # User Olaf Wintermann # Date 1779995846 -7200 # Node ID 30476eaff3ba03999468859b7a6507d9d9ed00ff # Parent 57cc5fc047f33d6c588ec7ffd2808d5bff70cc7c detach documents before a window is fulled destroyed diff -r 57cc5fc047f3 -r 30476eaff3ba ui/common/context.c --- a/ui/common/context.c Thu May 28 17:45:20 2026 +0200 +++ b/ui/common/context.c Thu May 28 21:17:26 2026 +0200 @@ -110,6 +110,7 @@ cxListClear(ctx->states); cxListClear(ctx->state_widgets); cxListClear(ctx->action_bindings); + uic_context_detach_all(ctx); } void uic_context_destroy(UiContext *ctx, void *document) {