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:
Jasper St. Pierre 2012-08-25 04:31:38 -03:00
parent 6d67ee3965
commit d8bc7f7aa1

View File

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