[gegl/soc-2013-opecl-ops] operations: Fix memory leak in photocopy.



commit 6cbf9f15c6d7f1d31c8fed61ea9bb5f114ecfe51
Author: Hans Lo <hansshulo gmail com>
Date:   Sun Aug 18 21:18:25 2013 -0400

    operations: Fix memory leak in photocopy.

 operations/common/photocopy.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/operations/common/photocopy.c b/operations/common/photocopy.c
index 35dbf75..4d75a19 100644
--- a/operations/common/photocopy.c
+++ b/operations/common/photocopy.c
@@ -303,7 +303,6 @@ process (GeglOperation       *operation,
   total_pixels = result->width * result->height;
   src1_buf = g_slice_alloc (total_pixels * sizeof (gfloat));
   src2_buf = g_slice_alloc (total_pixels * sizeof (gfloat));
-  dst_buf = g_slice_alloc (total_pixels * sizeof (gfloat));
 
   gegl_buffer_get (dest1, result, 1.0, babl_format ("Y float"),
                    src1_buf, GEGL_AUTO_ROWSTRIDE, GEGL_ABYSS_NONE);



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