From a97d9c63890666150f91d52a7b0feb99cee91092 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Mon, 20 Mar 2023 12:00:02 -0400 Subject: [PATCH] Revert "Revert "gmain: Warn when g_source_remove() fails"" This reverts commit 8ab051c5c796e3d17863399bbf9164a71ba0fb06. --- glib/gmain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glib/gmain.c b/glib/gmain.c index 2f4f578d1..4de30fcd2 100644 --- a/glib/gmain.c +++ b/glib/gmain.c @@ -2405,6 +2405,8 @@ g_source_remove (guint tag) source = g_main_context_find_source_by_id (NULL, tag); if (source) g_source_destroy (source); + else + g_critical ("Source ID %u was not found when attempting to remove it", tag); return source != NULL; }