dont remove things from a list you are iterating over, thank you

SVN revision: 6006
This commit is contained in:
Till Adam 2002-03-01 21:55:55 +00:00
parent cf83b660f7
commit a87318928e
1 changed files with 6 additions and 1 deletions

View File

@ -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);