]> spindle.queued.net Git - midori/commitdiff
Disconnect signal handlers when disabling web cache
authorAlexander Butenko <a.butenka@gmail.com>
Fri, 23 Oct 2009 16:15:28 +0000 (18:15 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 23 Oct 2009 16:15:28 +0000 (18:15 +0200)
extensions/web-cache.c

index c0bb1e7d3d15511724fc1a9185ac7246ea8c7b76..d134a23eb5d44b121e0be49ae8ab9c45cb431371 100644 (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 (