diff -r 44ebbb4c8a13 -r 8e7c57c23133 ui/gtk/toolkit.c --- a/ui/gtk/toolkit.c Thu Nov 14 23:22:35 2024 +0100 +++ b/ui/gtk/toolkit.c Fri Nov 15 21:50:20 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) {