From 1c9686b9378a943ab23ee2219c64b3a312ce2404 Mon Sep 17 00:00:00 2001 From: Mohammed Sadiq Date: Tue, 18 Apr 2017 08:53:50 +0530 Subject: [PATCH] window: remove GSourceFunc once run The function is supposed to run once every minute. So after the function is run, just remove it from main thread. So that it won't act as a time bomb. https://bugzilla.gnome.org/show_bug.cgi?id=781081 --- src/gcal-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gcal-window.c b/src/gcal-window.c index b0e39fa7..1ab5335e 100644 --- a/src/gcal-window.c +++ b/src/gcal-window.c @@ -481,7 +481,7 @@ update_current_date (GcalWindow *window) out: g_timeout_add_seconds (60, (GSourceFunc) update_current_date, window); - GCAL_RETURN (G_SOURCE_CONTINUE); + GCAL_RETURN (G_SOURCE_REMOVE); } static void