From: Enrico Tröger Date: Mon, 18 May 2009 00:47:56 +0000 (+0200) Subject: Remove possibly remaining timers when closing browser windows X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e211c6884a32eff379c3ee0112783dbe325191e8;p=midori Remove possibly remaining timers when closing browser windows --- diff --git a/extensions/cookie-manager.c b/extensions/cookie-manager.c index 85718d0a..e3b9783f 100644 --- a/extensions/cookie-manager.c +++ b/extensions/cookie-manager.c @@ -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);