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:
Jonas Ådahl 2020-02-06 10:11:29 +01:00
parent fe1ccea1e1
commit b68c630329

View File

@ -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)
{ {