[gegl/wip/rishi/my-patches: 7/8] operations/common/exp-combine: Don't leak the source buffers



commit a645d8005625b5e6621493b57bfeff9dda10f954
Author: Debarshi Ray <debarshir gnome org>
Date:   Tue Nov 21 18:14:47 2017 +0100

    operations/common/exp-combine: Don't leak the source buffers
    
    Contrary to its name, gegl_operation_context_get_source returns
    "transfer full", not "transfer none".
    
    https://bugzilla.gnome.org/show_bug.cgi?id=790675

 operations/common/exp-combine.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/operations/common/exp-combine.c b/operations/common/exp-combine.c
index af3ea0d..85cf37b 100644
--- a/operations/common/exp-combine.c
+++ b/operations/common/exp-combine.c
@@ -954,6 +954,7 @@ gegl_expcombine_get_exposures (GeglOperation        *operation,
         }
 
       e->pixels[PIXELS_ACTIVE] = e->pixels[PIXELS_FULL];
+      g_object_unref (buffer);
 
       /* Read the exposure time: relate APEX brightness value only as a
        * function of exposure time that is assume aperture = 1 and


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