diff -r 03599608d555 -r 8be7fd628fbc ui/gtk/toolkit.c --- 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) {