[gegl] operations/common/exp-combine: Simplify code
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations/common/exp-combine: Simplify code
- Date: Fri, 24 Nov 2017 15:41:14 +0000 (UTC)
commit c817c5fab306cec7235324ad07931ccf539a7ad1
Author: Debarshi Ray <debarshir gnome org>
Date: Wed Nov 22 08:15:20 2017 +0100
operations/common/exp-combine: Simplify code
https://bugzilla.gnome.org/show_bug.cgi?id=790695
operations/common/exp-combine.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/operations/common/exp-combine.c b/operations/common/exp-combine.c
index 755dc9a..5b3cbce 100644
--- a/operations/common/exp-combine.c
+++ b/operations/common/exp-combine.c
@@ -982,10 +982,7 @@ gegl_expcombine_get_exposures (GeglOperation *operation,
if (errno)
{
g_warning ("Invalid exposure values specified for exp-combine");
- g_slist_foreach (exposures,
- (GFunc)gegl_expcombine_destroy_exposure,
- NULL);
- g_slist_free (exposures);
+ g_slist_free_full (exposures, (GDestroyNotify) gegl_expcombine_destroy_exposure);
g_slist_free (inputs);
gegl_expcombine_destroy_exposure (e);
@@ -1190,9 +1187,7 @@ gegl_expcombine_process (GeglOperation *operation,
/* Cleanup */
g_free (hdr);
-
- g_slist_foreach (exposures, (GFunc)gegl_expcombine_destroy_exposure, NULL);
- g_slist_free (exposures);
+ g_slist_free_full (exposures, (GDestroyNotify) gegl_expcombine_destroy_exposure);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]