stage: Protect call to unrealize() in dispose

Do not call ClutterStageWindow::unrealize() if the Stage has already
been unrealized.
This commit is contained in:
Emmanuele Bassi 2011-09-09 13:53:33 +01:00
parent 598e7a4a7e
commit c5ba998d64

View File

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