]> spindle.queued.net Git - midori/commitdiff
Remove possibly remaining timers when closing browser windows
authorEnrico Tröger <enrico.troeger@uvena.de>
Mon, 18 May 2009 00:47:56 +0000 (02:47 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 18 May 2009 00:47:56 +0000 (02:47 +0200)
extensions/cookie-manager.c

index 85718d0ae0004bdc4d7b75743d4532e233d9a353..e3b9783f79f4b8b473dd9d003172acd056b1ce6a 100644 (file)
@@ -95,6 +95,8 @@ static void cm_browser_close_cb(GtkObject *browser, CMData *cmdata)
        g_signal_handlers_disconnect_by_func(cmdata->extension, cm_deactivate_cb, cmdata);
        g_signal_handlers_disconnect_by_func(cmdata->browser, cm_browser_close_cb, cmdata);
        g_signal_handlers_disconnect_by_func(cmdata->jar, cm_jar_changed_cb, cmdata);
+       if (cmdata->timer_id > 0)
+               g_source_remove(cmdata->timer_id);
 
        cm_free_cookie_list(cmdata);