fix potential use-after-free in uic_context_detach_all default tip

Fri, 19 Jun 2026 21:18:18 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 19 Jun 2026 21:18:18 +0200
changeset 1216
c9702a6d7306
parent 1215
00515f6dbbd7

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

mercurial