--- ray/src/rt/text.c 1992/06/25 12:05:10 2.6 +++ ray/src/rt/text.c 1992/11/22 11:46:46 2.9 @@ -1,4 +1,4 @@ -/* Copyright (c) 1991 Regents of the University of California */ +/* Copyright (c) 1992 Regents of the University of California */ #ifndef lint static char SCCSid[] = "$SunId$ LBL"; @@ -254,7 +254,8 @@ OBJREC *m; tp = (TEXT *)m->os; if (tp == NULL) return; - for (tlp = tp->tl.next; tlp != NULL; tlp = tlp->next) { + while ((tlp = tp->tl.next) != NULL) { + tp->tl.next = tlp->next; free((char *)tlp->spc); free((char *)tlp); } @@ -267,7 +268,6 @@ intext(p, m) /* check to see if p is in text glyph * FVECT p; OBJREC *m; { - extern double fabs(); register TEXT *tp; register TLINE *tlp; FVECT v;