mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 03:22:04 +00:00
clutter/cogl: Plug region leak in clutter_stage_cogl_redraw_view
Fixes https://gitlab.gnome.org/GNOME/mutter/issues/1000
This commit is contained in:
parent
b30a29f830
commit
65401ed3f9
@ -691,7 +691,7 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window,
|
|||||||
gboolean do_swap_buffer;
|
gboolean do_swap_buffer;
|
||||||
gboolean swap_with_damage;
|
gboolean swap_with_damage;
|
||||||
ClutterActor *wrapper;
|
ClutterActor *wrapper;
|
||||||
cairo_region_t *redraw_clip;
|
cairo_region_t *redraw_clip = NULL;
|
||||||
cairo_region_t *fb_clip_region;
|
cairo_region_t *fb_clip_region;
|
||||||
cairo_region_t *swap_region;
|
cairo_region_t *swap_region;
|
||||||
cairo_rectangle_int_t redraw_rect;
|
cairo_rectangle_int_t redraw_rect;
|
||||||
@ -782,6 +782,7 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window,
|
|||||||
{
|
{
|
||||||
cairo_rectangle_int_t rect = { 0, 0, view_rect.width, view_rect.height };
|
cairo_rectangle_int_t rect = { 0, 0, view_rect.width, view_rect.height };
|
||||||
fb_clip_region = cairo_region_create_rectangle (&rect);
|
fb_clip_region = cairo_region_create_rectangle (&rect);
|
||||||
|
g_clear_pointer (&redraw_clip, cairo_region_destroy);
|
||||||
redraw_clip = cairo_region_copy (fb_clip_region);
|
redraw_clip = cairo_region_copy (fb_clip_region);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user