From: Yanko Kaneti <yaneti@declera.com>
Date: Fri, 14 Sep 2012 16:13:00 +0300
Subject: [PATCH] Fix crash when network online status changes
Description: From Fedora bug
https://bugzilla.redhat.com/show_bug.cgi?id=857348 :
"liferea frequently crashes when manipulating htmlviews (opening/closing
new tabs) while the network online status changes. This is caused
because the signal notifying online status is not properly disconnected
when the htmlview is removed."
Origin: upstream, http://liferea.git.sourceforge.net/git/gitweb.cgi?p=liferea/liferea;a=commit;h=7c69af4fe8435b34cbf9e7f76cb2e44e985d37b5
Bug: http://sourceforge.net/tracker/index.php?func=detail&aid=3567715&group_id=87005&atid=581686
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692270
Last-Update: 2012-12-15
--- a/src/ui/liferea_htmlview.c
+++ b/src/ui/liferea_htmlview.c
@@ -77,6 +77,8 @@
 static void
 liferea_htmlview_finalize (GObject *object)
 {
+	g_signal_handlers_disconnect_by_data (network_monitor_get (), object);
+
 	G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 
