diff -r 2dda1ad6dc7a -r 012418e7dc90 ui/gtk/button.c --- a/ui/gtk/button.c Wed Apr 02 20:31:47 2014 +0200 +++ b/ui/gtk/button.c Thu Apr 03 11:12:22 2014 +0200 @@ -51,6 +51,11 @@ "clicked", G_CALLBACK(ui_button_clicked), event); + g_signal_connect( + button, + "destroy", + G_CALLBACK(ui_destroy_userdata), + event); } UiContainer *ct = uic_get_current_container(obj);