From a87318928e4175e431529b5ebe20466a7636e421 Mon Sep 17 00:00:00 2001 From: Till Adam Date: Fri, 1 Mar 2002 21:55:55 +0000 Subject: [PATCH] dont remove things from a list you are iterating over, thank you SVN revision: 6006 --- src/e_view_machine.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/e_view_machine.c b/src/e_view_machine.c index 991eee7a2..6307c166c 100644 --- a/src/e_view_machine.c +++ b/src/e_view_machine.c @@ -46,9 +46,14 @@ e_view_machine_unregister_view(E_View *v) void e_view_machine_close_all_views(void) { - Evas_List l; + Evas_List l,ll; D_ENTER; + /* Copy the list of views and unregister them */ for (l=VM->views;l;l=l->next) + { + ll = evas_list_append(ll, l->data); + } + for (l=ll;l;l=l->next) { E_View *v = l->data; e_view_machine_unregister_view(v);