[libgd] GdStack: fix forall loop during destruction
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd] GdStack: fix forall loop during destruction
- Date: Sat, 16 Feb 2013 16:26:33 +0000 (UTC)
commit c8dfab9f27ded966ea417a2cefbc8980f43b9c02
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Feb 16 17:06:32 2013 +0100
GdStack: fix forall loop during destruction
libgd/gd-stack.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libgd/gd-stack.c b/libgd/gd-stack.c
index 0d3a1b8..4ec26ba 100644
--- a/libgd/gd-stack.c
+++ b/libgd/gd-stack.c
@@ -773,9 +773,12 @@ gd_stack_forall (GtkContainer *container,
GdStackChildInfo *child_info;
GList *l;
- for (l = priv->children; l != NULL; l = l->next)
+ l = priv->children;
+ while (l)
{
child_info = l->data;
+ l = l->next;
+
(* callback) (child_info->widget, callback_data);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]