mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
shaped-texture: Clean up texture regions
We allocated texture regions, but didn't free them when finished, causing a leak. https://gitlab.gnome.org/GNOME/gnome-shell/issues/653
This commit is contained in:
parent
71a62bb18f
commit
8200995fdb
@ -516,6 +516,7 @@ meta_shaped_texture_paint (ClutterActor *actor)
|
||||
}
|
||||
else
|
||||
{
|
||||
opaque_tex_region = NULL;
|
||||
use_opaque_region = FALSE;
|
||||
}
|
||||
|
||||
@ -659,6 +660,8 @@ meta_shaped_texture_paint (ClutterActor *actor)
|
||||
}
|
||||
}
|
||||
|
||||
g_clear_pointer (&clip_tex_region, cairo_region_destroy);
|
||||
g_clear_pointer (&opaque_tex_region, cairo_region_destroy);
|
||||
g_clear_pointer (&blended_tex_region, cairo_region_destroy);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user