--- capplet/sawmill-capplet.c.orig Thu Jan 24 22:31:39 2002 +++ capplet/sawmill-capplet.c Thu Jan 24 22:52:59 2002 @@ -104,7 +104,7 @@ display_error (const char *message) { GtkWidget *label; - + if (ui_handler_id != 0) { gtk_input_remove (ui_handler_id); @@ -119,7 +119,10 @@ if (ui_socket != 0) { gtk_container_remove (GTK_CONTAINER (capplet), ui_socket); - gtk_object_destroy (GTK_OBJECT (ui_socket)); + + if (GTK_IS_OBJECT (ui_socket)) { + gtk_object_destroy (GTK_OBJECT (ui_socket)); + } ui_socket = 0; }