From 41f279082c75cb981657fcbd5f503a959cc50207 Mon Sep 17 00:00:00 2001 From: "Maciej S. Szmigiero" Date: Sun, 14 Nov 2021 15:35:12 +0100 Subject: [PATCH] Add missing zeroing of timeout_id in dialog_timed_out() timer handler dialog_timed_out() returns FALSE to remove its GSource but does not zero the related timeout_id variable which can result in later removal of a different event source that happen to reuse this id. --- src/gs-lock-plug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gs-lock-plug.c b/src/gs-lock-plug.c index 9c05b71..08e417e 100644 --- a/src/gs-lock-plug.c +++ b/src/gs-lock-plug.c @@ -374,6 +374,8 @@ static gboolean dialog_timed_out (gpointer user_data) { GSLockPlug *plug = user_data; + plug->priv->cancel_timeout_id = 0; + gs_lock_plug_set_sensitive (plug, FALSE); set_status_text (plug, _("Time has expired.")); -- GitLab