ui/gtk/toolkit.c

branch
newapi
changeset 384
8be7fd628fbc
parent 367
1c3af8e31d8e
--- a/ui/gtk/toolkit.c	Fri Nov 15 21:16:18 2024 +0100
+++ b/ui/gtk/toolkit.c	Fri Nov 15 21:23:16 2024 +0100
@@ -163,6 +163,7 @@
 #elif GTK_MAJOR_VERSION <= 3
     gtk_widget_show_all(obj->widget);
 #endif
+    obj->ref++;
 }
 
 void ui_close(UiObject *obj) {

mercurial