From 9391b0fe21d120b186d2ef4a09b1125c5058ae95 Mon Sep 17 00:00:00 2001 From: Arnaud Renevier Date: Sun, 29 Jun 2008 16:10:56 +0200 Subject: [PATCH] Disconnect midori_web_view_settings_notify on finalize --- midori/midori-webview.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/midori/midori-webview.c b/midori/midori-webview.c index 5b92cd72..0570a291 100644 --- a/midori/midori-webview.c +++ b/midori/midori-webview.c @@ -592,7 +592,12 @@ midori_web_view_finalize (GObject* object) katze_xbel_item_unref (web_view->proxy_xbel_item); if (web_view->settings) + { + g_signal_handlers_disconnect_by_func (web_view->settings, + midori_web_view_settings_notify, + web_view); g_object_unref (web_view->settings); + } G_OBJECT_CLASS (midori_web_view_parent_class)->finalize (object); }