[Xfce4-commits] <midori:master> Disconnect signal handlers when disabling web cache

Christian Dywan noreply at xfce.org
Fri Oct 23 18:18:01 CEST 2009


Updating branch refs/heads/master
         to 9deda8296bf405a139eb2f7586eb891c4ad65850 (commit)
       from a2891e0ddb97e73b9b1cd4d398922d3e9ed6913c (commit)

commit 9deda8296bf405a139eb2f7586eb891c4ad65850
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Fri Oct 23 18:15:28 2009 +0200

    Disconnect signal handlers when disabling web cache

 extensions/web-cache.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/extensions/web-cache.c b/extensions/web-cache.c
index c0bb1e7..d134a23 100644
--- a/extensions/web-cache.c
+++ b/extensions/web-cache.c
@@ -350,8 +350,13 @@ 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 (
         app, web_cache_app_add_browser_cb, extension);



More information about the Xfce4-commits mailing list