actor: Ignore paint() on actors being destroyed

OBVIOUS OPTIMIZATION IS OBVIOUS
This commit is contained in:
Emmanuele Bassi 2010-08-18 18:20:16 +01:00
parent 56097df60c
commit c646a366c6

View File

@ -2661,6 +2661,9 @@ clutter_actor_paint (ClutterActor *self)
g_return_if_fail (CLUTTER_IS_ACTOR (self));
if (CLUTTER_ACTOR_IN_DESTRUCTION (self))
return;
priv = self->priv;
context = _clutter_context_get_default ();