From: Peter Hofmann Date: Sat, 21 Jun 2014 15:53:43 +0000 (+0200) Subject: Fix crash when closing a tab that's still loading X-Git-Tag: v1.0.0~244 X-Git-Url: https://git.armaanb.net/?a=commitdiff_plain;h=d2a5eaf33e0dc0bb0452b57433a267dc7bc45e2e;p=chorizo.git Fix crash when closing a tab that's still loading Disconnect the handler for "notify::progress" because that signal might get fired after "c" has been free'd which resulted in a reproducible crash. --- diff --git a/browser.c b/browser.c index b10361a..b79e29d 100644 --- a/browser.c +++ b/browser.c @@ -153,6 +153,9 @@ client_destroy(GtkWidget *obj, gpointer data) { struct Client *c = (struct Client *)data; + g_signal_handlers_disconnect_by_func(G_OBJECT(c->web_view), + changed_load_progress, c); + free(c); clients--;