The attached patch fixes a crashing bug in surf.

There's still plenty of crashing bugs left, though, so the difference is
probably only academic at this point (and this feels ugly anyway -
what's going on with GTK signal processing?)

diff -r d9957625b700 surf.c
--- a/surf.c	Sun May 09 22:51:26 2010 +0200
+++ b/surf.c	Mon May 10 21:17:25 2010 +0200
@@ -234,6 +234,9 @@
 	int i;
 	Client *p;
 
+        /* We don't want signals to pop up while we are in mid-destruction */
+	g_signal_handlers_disconnect_matched(GTK_WIDGET(c->view), G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, c);
+
 	gtk_widget_destroy(c->indicator);
 	gtk_widget_destroy(GTK_WIDGET(c->view));
 	gtk_widget_destroy(c->scroll);
-- 
\  Troels
/\ Henriksen

Reply via email to