diff --git a/src/gcal-window.c b/src/gcal-window.c
index a8a5996..5d87518 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1237,6 +1237,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)
     {
