--- 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) {