Disconnect signal handlers when disabling web cache

This commit is contained in:
Alexander Butenko 2009-10-23 18:15:28 +02:00 committed by Christian Dywan
parent a2891e0ddb
commit 9deda8296b

View file

@ -350,7 +350,12 @@ web_cache_deactivate_cb (MidoriExtension* extension,
MidoriBrowser* browser)
{
MidoriApp* app = midori_extension_get_app (extension);
SoupSession* session = webkit_get_default_session ();
g_signal_handlers_disconnect_by_func (
session, web_cache_session_request_queued_cb, extension);
g_signal_handlers_disconnect_by_func (
session, web_cache_session_request_unqueued_cb, extension);
g_signal_handlers_disconnect_by_func (
extension, web_cache_deactivate_cb, browser);
g_signal_handlers_disconnect_by_func (