[mutter] window-actor: Fix a memory leak



commit d8bc7f7aa1aff82275f10025dbd2a723c6629a2d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Sat Aug 25 04:31:38 2012 -0300

    window-actor: Fix a memory leak
    
    We need to free the frame_paint_region here.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682648

 src/compositor/meta-window-actor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 70ec535..f74b8c6 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]