clutter-actor: Free the paint volume when queue a clip redraw

In _clutter_actor_queue_redraw_with_clip it has a local variable to
mark when a new paint volume for the clip is created so that it can be
freed when the function returns. However the actual code to free the
paint volume went missing in 3b789490d2 so the variable did
nothing. This patch just adds the free back in.
This commit is contained in:
Neil Roberts 2011-02-16 18:42:33 +00:00
parent 8231c345dc
commit 71f57eef1b

View File

@ -5251,13 +5251,15 @@ _clutter_actor_queue_redraw_with_clip (ClutterActor *self,
/* Ignore queuing a redraw for actors not descended from a stage */
stage = _clutter_actor_get_stage_internal (self);
if (stage == NULL)
return;
if (stage != NULL)
_clutter_stage_queue_actor_redraw (CLUTTER_STAGE (stage),
self->priv->queue_redraw_entry,
self,
pv);
if (should_free_pv)
clutter_paint_volume_free (pv);
}
static void