[gegl] bilateral-filter: don't leak buffer if radius<1,	copy data instead
- From: Michael Murà <mmure src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gegl] bilateral-filter: don't leak buffer if radius<1,	copy data instead
- Date: Wed, 23 May 2012 12:27:12 +0000 (UTC)
commit 05f74df0f5190a86729c8841cc8359a29e54768b
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]