From: Christian Dywan Date: Fri, 17 Oct 2008 19:12:16 +0000 (+0200) Subject: Disconnect view settings notification in finalize X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f5ac14b45f6040963a10a8700e088d1083abba8;p=midori Disconnect view settings notification in finalize --- 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)