dummy objects should be created with 1 as ref counter

Mon, 12 Jan 2026 20:58:41 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Mon, 12 Jan 2026 20:58:41 +0100
changeset 1047
acb5352a2038
parent 1046
94df16a7fff2
child 1048
60bba3640adb

dummy objects should be created with 1 as ref counter

ui/common/object.c file | annotate | diff | comparison | revisions
--- a/ui/common/object.c	Mon Jan 12 20:54:27 2026 +0100
+++ b/ui/common/object.c	Mon Jan 12 20:58:41 2026 +0100
@@ -61,7 +61,9 @@
 }
 
 UiObject* ui_dummy_object(void) {
-    return uic_object_new_toplevel();
+    UiObject *obj = uic_object_new_toplevel();
+    obj->ref = 1;
+    return obj;
 }
 
 void uic_object_created(UiObject *obj) {

mercurial