ui/common/object.c

changeset 1047
acb5352a2038
parent 1046
94df16a7fff2
--- 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