Disconnect midori_web_view_settings_notify on finalize

This commit is contained in:
Arnaud Renevier 2008-06-29 16:10:56 +02:00 committed by Christian Dywan
parent 04d3ae6506
commit 9391b0fe21

View file

@ -592,7 +592,12 @@ midori_web_view_finalize (GObject* object)
katze_xbel_item_unref (web_view->proxy_xbel_item); katze_xbel_item_unref (web_view->proxy_xbel_item);
if (web_view->settings) 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_unref (web_view->settings);
}
G_OBJECT_CLASS (midori_web_view_parent_class)->finalize (object); G_OBJECT_CLASS (midori_web_view_parent_class)->finalize (object);
} }