stage: Protect call to unrealize() in dispose
Do not call ClutterStageWindow::unrealize() if the Stage has already been unrealized.
This commit is contained in:
parent
598e7a4a7e
commit
c5ba998d64
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user