[gimp] app: free unused return value of gimp_procedure_execute().



commit 968cc3c7586a7affc672e0e443ee1bb422c9b9f7
Author: Jehan <jehan girinstud io>
Date:   Mon Aug 16 19:08:40 2021 +0200

    app: free unused return value of gimp_procedure_execute().
    
    Another leak reported by Massimo.

 app/actions/gimpgeglprocedure.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/app/actions/gimpgeglprocedure.c b/app/actions/gimpgeglprocedure.c
index 25a6159fce..be1ae40cef 100644
--- a/app/actions/gimpgeglprocedure.c
+++ b/app/actions/gimpgeglprocedure.c
@@ -280,9 +280,12 @@ gimp_gegl_procedure_execute_async (GimpProcedure  *procedure,
     {
       if (settings || run_mode == GIMP_RUN_NONINTERACTIVE)
         {
+          GimpValueArray *return_vals;
+
           g_value_set_object (gimp_value_array_index (args, 3), settings);
-          gimp_procedure_execute (procedure, gimp, context, progress,
-                                  args, NULL);
+          return_vals = gimp_procedure_execute (procedure, gimp, context, progress,
+                                                args, NULL);
+          gimp_value_array_unref (return_vals);
           return;
         }
 


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