From 9deda8296bf405a139eb2f7586eb891c4ad65850 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Fri, 23 Oct 2009 18:15:28 +0200 Subject: [PATCH] Disconnect signal handlers when disabling web cache --- extensions/web-cache.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extensions/web-cache.c b/extensions/web-cache.c index c0bb1e7d..d134a23e 100644 --- a/extensions/web-cache.c +++ b/extensions/web-cache.c @@ -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 ( -- 2.39.5