window-actor: Fix a memory leak
We need to free the frame_paint_region here. https://bugzilla.gnome.org/show_bug.cgi?id=682648
This commit is contained in:
@ -2175,6 +2175,7 @@ build_and_scan_frame_mask (MetaWindowActor *self,
|
||||
scanned_region = scan_visible_region (mask_data, stride, frame_paint_region);
|
||||
cairo_region_union (shape_region, scanned_region);
|
||||
cairo_region_destroy (scanned_region);
|
||||
cairo_region_destroy (frame_paint_region);
|
||||
}
|
||||
|
||||
cairo_destroy (cr);
|
||||
|
Reference in New Issue
Block a user