From c5ba998d64605b207b499221d7a484794e756c7a Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 9 Sep 2011 13:53:33 +0100 Subject: [PATCH] stage: Protect call to unrealize() in dispose Do not call ClutterStageWindow::unrealize() if the Stage has already been unrealized. --- clutter/clutter-stage.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c index fe0298471..0abe9e99b 100644 --- a/clutter/clutter-stage.c +++ b/clutter/clutter-stage.c @@ -1631,7 +1631,9 @@ clutter_stage_dispose (GObject *object) { CLUTTER_NOTE (BACKEND, "Disposing of the stage implementation"); - _clutter_stage_window_unrealize (priv->impl); + if (CLUTTER_ACTOR_IS_REALIZED (object)) + _clutter_stage_window_unrealize (priv->impl); + g_object_unref (priv->impl); priv->impl = NULL; }