Fri, 19 Jun 2026 21:18:18 +0200
fix potential use-after-free in uic_context_detach_all
| ui/common/context.c | file | annotate | diff | comparison | revisions |
--- a/ui/common/context.c Fri Jun 19 19:59:02 2026 +0200 +++ b/ui/common/context.c Fri Jun 19 21:18:18 2026 +0200 @@ -136,7 +136,7 @@ } uic_context_detach_all(ctx); - + cxMempoolFree(ctx->mp); } @@ -281,7 +281,6 @@ i = cxListIterator(ls); cx_foreach(void *, doc, i) { uic_context_detach_document(ctx, doc); - uic_send_status_change(ui_document_context(doc), NULL); } cxListFree(ls);