Remove possibly remaining timers when closing browser windows

This commit is contained in:
Enrico Tröger 2009-05-18 02:47:56 +02:00 committed by Christian Dywan
parent 7fc6c46c9a
commit e211c6884a

View 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->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->browser, cm_browser_close_cb, cmdata);
g_signal_handlers_disconnect_by_func(cmdata->jar, cm_jar_changed_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); cm_free_cookie_list(cmdata);