# HG changeset patch # User Olaf Wintermann # Date 1768247921 -3600 # Node ID acb5352a203825a1bbbf58820b4107d4675e7377 # Parent 94df16a7fff262e42e34872853a3aa14c95672d9 dummy objects should be created with 1 as ref counter diff -r 94df16a7fff2 -r acb5352a2038 ui/common/object.c --- 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) {