[gimp] Issue #3306 - Memory leak using Crop tool



commit 84e183e5ed1842199f0a2af03abce0d316b07e4b
Author: Ell <ell_se yahoo com>
Date:   Tue Apr 30 16:45:12 2019 -0400

    Issue #3306 - Memory leak using Crop tool
    
    In gimp_canvas_passe_partout_get_extents(), free the inner region
    after XORing it with the outer region.

 app/display/gimpcanvaspassepartout.c | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/app/display/gimpcanvaspassepartout.c b/app/display/gimpcanvaspassepartout.c
index 06b26e703e..cadf22cc82 100644
--- a/app/display/gimpcanvaspassepartout.c
+++ b/app/display/gimpcanvaspassepartout.c
@@ -170,6 +170,8 @@ gimp_canvas_passe_partout_get_extents (GimpCanvasItem *item)
 
   cairo_region_xor (outer, inner);
 
+  cairo_region_destroy (inner);
+
   return outer;
 }
 


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