mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
clutter/cogl/stage: Use g_clear_pointer() to clean up regions
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1042
This commit is contained in:
parent
fe1ccea1e1
commit
b68c630329
@ -1032,10 +1032,8 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window,
|
|||||||
do_swap_buffer = TRUE;
|
do_swap_buffer = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (redraw_clip)
|
g_clear_pointer (&redraw_clip, cairo_region_destroy);
|
||||||
cairo_region_destroy (redraw_clip);
|
g_clear_pointer (&fb_clip_region, cairo_region_destroy);
|
||||||
if (fb_clip_region)
|
|
||||||
cairo_region_destroy (fb_clip_region);
|
|
||||||
|
|
||||||
if (do_swap_buffer)
|
if (do_swap_buffer)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user