window: remove refresh timeout on exit

https://bugzilla.gnome.org/show_bug.cgi?id=783441
This commit is contained in:
Milan Crha
2017-06-18 14:54:50 -03:00
committed by Georges Basile Stavracas Neto
parent a8cff62666
commit e07590d1cf
+6
View File
@@ -1295,6 +1295,12 @@ gcal_window_finalize (GObject *object)
window->open_edit_dialog_timeout_id = 0;
}
if (window->refresh_timeout_id > 0)
{
g_source_remove (window->refresh_timeout_id);
window->refresh_timeout_id = 0;
}
/* If we have a queued event to delete, remove it now */
if (window->event_to_delete)
{