[gegl] operations/common/exp-combine: Plug leaks in error path



commit 5dc18853ba8999a66b6d11fe9227fb6c341c0c84
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Nov 22 08:06:19 2017 +0100

    operations/common/exp-combine: Plug leaks in error path
    
    Spotted by Ell.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=790695

 operations/common/exp-combine.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/operations/common/exp-combine.c b/operations/common/exp-combine.c
index 181c1d1..755dc9a 100644
--- a/operations/common/exp-combine.c
+++ b/operations/common/exp-combine.c
@@ -986,6 +986,8 @@ gegl_expcombine_get_exposures (GeglOperation        *operation,
                            (GFunc)gegl_expcombine_destroy_exposure,
                            NULL);
           g_slist_free    (exposures);
+          g_slist_free (inputs);
+          gegl_expcombine_destroy_exposure (e);
 
           return NULL;
         }


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