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; }