From f133d84c026a5c7737c348a85c70f49ab1adb90d Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 3 Feb 2011 11:25:28 +0000 Subject: [PATCH] stage: Do not update when destroying a stage During the stage destruction we should just skip event processing, since we cannot guarantee that the stage is actually valid. --- clutter/clutter-stage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c index 624967198..c2954de6d 100644 --- a/clutter/clutter-stage.c +++ b/clutter/clutter-stage.c @@ -815,6 +815,9 @@ _clutter_stage_do_update (ClutterStage *stage) priv = stage->priv; + if (CLUTTER_ACTOR_IN_DESTRUCTION (stage)) + return FALSE; + /* NB: We need to ensure we have an up to date layout *before* we * check or clear the pending redraws flag since a relayout may * queue a redraw.