From 71f57eef1b30817ad46a94272526dcc4ddc5e516 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Wed, 16 Feb 2011 18:42:33 +0000 Subject: [PATCH] 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 3b789490d2c so the variable did nothing. This patch just adds the free back in. --- clutter/clutter-actor.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/clutter/clutter-actor.c b/clutter/clutter-actor.c index 272778baf..1d5eccc67 100644 --- a/clutter/clutter-actor.c +++ b/clutter/clutter-actor.c @@ -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; - _clutter_stage_queue_actor_redraw (CLUTTER_STAGE (stage), - self->priv->queue_redraw_entry, - self, - pv); + 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