Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1895/src
Modified Files: Tag: devel_0_39 g_editor.c Log Message: fixing glob_closeall list traversal
Index: g_editor.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/g_editor.c,v retrieving revision 1.4.4.2.2.7 retrieving revision 1.4.4.2.2.8 diff -C2 -d -r1.4.4.2.2.7 -r1.4.4.2.2.8 *** g_editor.c 26 Jul 2006 10:17:26 -0000 1.4.4.2.2.7 --- g_editor.c 2 Aug 2006 16:23:03 -0000 1.4.4.2.2.8 *************** *** 1692,1699 **** void glob_closeall(void*dummy, t_floatarg fforce) { ! t_canvas*x; ! for (x = canvas_list; x; x = x->gl_next) { canvas_menuclose(x, fforce); /* forced closing of this root canvas */ } } --- 1692,1701 ---- void glob_closeall(void*dummy, t_floatarg fforce) { ! t_canvas*x,*y; ! for (x = canvas_list; x; ) { + y = x->gl_next; canvas_menuclose(x, fforce); /* forced closing of this root canvas */ + x = y; } }