diff options
author | Peter Hofmann <scm@uninformativ.de> | 2014-06-21 17:53:43 +0200 |
---|---|---|
committer | Peter Hofmann <scm@uninformativ.de> | 2014-06-21 18:28:24 +0200 |
commit | d2a5eaf33e0dc0bb0452b57433a267dc7bc45e2e (patch) | |
tree | fc1acf53bee453e3a4ae492a452f70528a9bd7da | |
parent | 55126fd2bd5139465ec3944994a5023cfdf47d1d (diff) | |
download | lariza-d2a5eaf33e0dc0bb0452b57433a267dc7bc45e2e.tar.gz |
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.
-rw-r--r-- | browser.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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--; |