[gegl/soc-2012-ops] bilateral-filter: don't leak buffer if radius<1, copy data instead



commit 6cf3703512f9b6f74373a1ad7e79942018178d45
Author: Michael Murà <batolettre gmail com>
Date:   Wed May 23 21:21:49 2012 +0900

    bilateral-filter: don't leak buffer if radius<1, copy data instead

 operations/common/bilateral-filter.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/operations/common/bilateral-filter.c b/operations/common/bilateral-filter.c
index 83f885b..a959b6a 100644
--- a/operations/common/bilateral-filter.c
+++ b/operations/common/bilateral-filter.c
@@ -199,7 +199,7 @@ process (GeglOperation       *operation,
 
   if (o->blur_radius < 1.0)
     {
-      output = g_object_ref (input);
+      gegl_buffer_copy (input, result, output, result);
     }
   else
     {



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