the dummy object should not increase the app reference counter

Thu, 12 Feb 2026 15:48:18 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Thu, 12 Feb 2026 15:48:18 +0100
changeset 1071
d64c417039bc
parent 1070
e097bc7cfec6
child 1072
798952a8f97c

the dummy object should not increase the app reference counter

ui/common/object.c file | annotate | diff | comparison | revisions
ui/gtk/toolkit.c file | annotate | diff | comparison | revisions
--- a/ui/common/object.c	Thu Feb 12 15:44:46 2026 +0100
+++ b/ui/common/object.c	Thu Feb 12 15:48:18 2026 +0100
@@ -63,7 +63,6 @@
 UiObject* ui_dummy_object(void) {
     UiObject *obj = uic_object_new_toplevel();
     obj->ref = 1;
-    ui_app_ref();
     return obj;
 }
 
--- a/ui/gtk/toolkit.c	Thu Feb 12 15:44:46 2026 +0100
+++ b/ui/gtk/toolkit.c	Thu Feb 12 15:48:18 2026 +0100
@@ -190,7 +190,6 @@
 #endif
     } else {
         ui_window_close_request(obj);
-        ui_app_unref();
     }
 }
 

mercurial