[gegl] gblue-1d: also free cmatrix for opencl codepath



commit 14d395380ed45a8584a949ab6f42e033a1458a90
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Sep 21 19:32:11 2016 +0200

    gblue-1d: also free cmatrix for opencl codepath

 operations/common/gblur-1d.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/operations/common/gblur-1d.c b/operations/common/gblur-1d.c
index 39f92b6..d0c1c15 100644
--- a/operations/common/gblur-1d.c
+++ b/operations/common/gblur-1d.c
@@ -821,7 +821,10 @@ gegl_gblur_1d_process (GeglOperation       *operation,
           format == babl_format ("RaGaBaA float"))
         if (fir_cl_process(input, output, result, format,
                            cmatrix, clen, o->orientation, abyss_policy))
+        {
+          gegl_free (cmatrix);
           return TRUE;
+        }
 
       if (o->orientation == GEGL_ORIENTATION_HORIZONTAL)
         fir_hor_blur (input, result, output, cmatrix, clen, abyss_policy, format);


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