summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2014-06-21 17:53:43 +0200
committerPeter Hofmann <scm@uninformativ.de>2014-06-21 18:28:24 +0200
commitd2a5eaf33e0dc0bb0452b57433a267dc7bc45e2e (patch)
treefc1acf53bee453e3a4ae492a452f70528a9bd7da
parent55126fd2bd5139465ec3944994a5023cfdf47d1d (diff)
downloadlariza-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.c3
1 files changed, 3 insertions, 0 deletions
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--;