From 7eec97626d7952e2c865c134ca90277ac32bda23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 6 Mar 2023 23:47:02 +0100 Subject: [PATCH] clutter/frame-clock: Warn if frame clock is disposed while dispatching This shouldn't happen, but warn anyway to be a bit more helpful if things go bad. Part-of: --- clutter/clutter/clutter-frame-clock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clutter/clutter/clutter-frame-clock.c b/clutter/clutter/clutter-frame-clock.c index e5d1a44e2..eeba108e1 100644 --- a/clutter/clutter/clutter-frame-clock.c +++ b/clutter/clutter/clutter-frame-clock.c @@ -957,6 +957,8 @@ clutter_frame_clock_dispose (GObject *object) { ClutterFrameClock *frame_clock = CLUTTER_FRAME_CLOCK (object); + g_warn_if_fail (frame_clock->state != CLUTTER_FRAME_CLOCK_STATE_DISPATCHING); + if (frame_clock->source) { g_signal_emit (frame_clock, signals[DESTROY], 0);