From: Alexander Butenko Date: Fri, 23 Oct 2009 16:15:28 +0000 (+0200) Subject: Disconnect signal handlers when disabling web cache X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9deda8296bf405a139eb2f7586eb891c4ad65850;p=midori Disconnect signal handlers when disabling web cache --- 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 (