[gimp] Bug 791901 - GeglBuffers leaked with Zealous Crop.



commit 2d4715bee991562dadd88c9815f3b4b2e05e4161
Author: Jehan <jehan girinstud io>
Date:   Sun Dec 24 00:39:02 2017 +0100

    Bug 791901 - GeglBuffers leaked with Zealous Crop.

 plug-ins/common/crop-zealous.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/crop-zealous.c b/plug-ins/common/crop-zealous.c
index 1cb35db..4a8a25b 100644
--- a/plug-ins/common/crop-zealous.c
+++ b/plug-ins/common/crop-zealous.c
@@ -253,6 +253,10 @@ do_zcrop (gint32  drawable_id,
       (livingcols == width && livingrows == height))
     {
       g_message (_("Nothing to crop."));
+
+      g_object_unref (shadow_buffer);
+      g_object_unref (drawable_buffer);
+
       g_free (linear_buf);
       g_free (killrows);
       g_free (killcols);


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