From 3f5ac14b45f6040963a10a8700e088d1083abba8 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 17 Oct 2008 21:12:16 +0200 Subject: [PATCH] Disconnect view settings notification in finalize --- midori/midori-view.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/midori/midori-view.c b/midori/midori-view.c index 636a53a2..9425b5de 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -132,6 +132,11 @@ midori_view_get_property (GObject* object, GValue* value, GParamSpec* pspec); +static void +midori_view_settings_notify_cb (MidoriWebSettings* settings, + GParamSpec* pspec, + MidoriView* view); + static void midori_cclosure_marshal_VOID__STRING_BOOLEAN (GClosure* closure, GValue* return_value, @@ -1067,6 +1072,9 @@ midori_view_finalize (GObject* object) view = MIDORI_VIEW (object); + g_signal_handlers_disconnect_by_func (view->settings, + midori_view_settings_notify_cb, view); + g_free (view->uri); g_free (view->title); if (view->icon) -- 2.39.5