mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 14:53:03 +00:00
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.
This commit is contained in:
parent
8231c345dc
commit
71f57eef1b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user