[gimp/gimp-2-10] Issue #3306 - Memory leak using Crop tool
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-10] Issue #3306 - Memory leak using Crop tool
- Date: Tue, 30 Apr 2019 20:47:41 +0000 (UTC)
commit aa9d16a82206bbb1880c0b7dfd306d77a7a8f2d6
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.
(cherry picked from commit 84e183e5ed1842199f0a2af03abce0d316b07e4b)
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]