]> spindle.queued.net Git - midori/commitdiff
Properly disconnect add-tab on destruction in adblock
authorAlexander Butenko <a.butenka@gmail.com>
Wed, 30 Jun 2010 20:31:10 +0000 (16:31 -0400)
committerChristian Dywan <christian@twotoasts.de>
Wed, 30 Jun 2010 20:41:32 +0000 (22:41 +0200)
extensions/adblock.c

index 372d13adf093ede558a786b6770bfd8e5a121119..46a244a08dd7cb0c145b29ee4d90b8487074f380 100644 (file)
@@ -1349,6 +1349,8 @@ adblock_deactivate_cb (MidoriExtension* extension,
         extension, adblock_deactivate_cb, browser);
     g_signal_handlers_disconnect_by_func (
         app, adblock_app_add_browser_cb, extension);
+    g_signal_handlers_disconnect_by_func (
+        browser, adblock_add_tab_cb, extension);
     midori_browser_foreach (browser, (GtkCallback)adblock_deactivate_tabs, browser);
 
     katze_assign (blockcss, NULL);