[gegl] gegl-serialize: prevent possible infinite loop
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl-serialize: prevent possible infinite loop
- Date: Mon, 19 Jun 2017 12:55:24 +0000 (UTC)
commit c944df8b4be60959d74d65105060feb5e42fea58
Author: Øyvind Kolås <pippin gimp org>
Date: Sun Jun 18 23:59:39 2017 +0200
gegl-serialize: prevent possible infinite loop
if remove_in_betweens was passed two unconnected nodes - it would never finish.
gegl/gegl-serialize.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gegl/gegl-serialize.c b/gegl/gegl-serialize.c
index 283951c..bae2868 100644
--- a/gegl/gegl-serialize.c
+++ b/gegl/gegl-serialize.c
@@ -46,6 +46,8 @@ remove_in_betweens (GeglNode *nop_raw,
int count = gegl_node_get_consumers (iter, "output", &nodes, NULL);
if (count)
iter = nodes[0];
+ else
+ iter = NULL;
g_free (nodes);
if (iter && iter != nop_transformed)
collect = g_list_append (collect, iter);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]