]> spindle.queued.net Git - midori/commitdiff
Disconnect view settings notification in finalize
authorChristian Dywan <christian@twotoasts.de>
Fri, 17 Oct 2008 19:12:16 +0000 (21:12 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 17 Oct 2008 19:12:16 +0000 (21:12 +0200)
midori/midori-view.c

index 636a53a2bf3c0eadaadccd934bcb63a8c39f107f..9425b5defbb955dd11771afc1fac8831ee15be89 100644 (file)
@@ -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)