[comp.windows.x] yet another bug in xfig 2.0

envbvs@epb2.lbl.gov (Brian V. Smith) (02/23/90)

I will wait for any more bugs to be reported before posting
a new "official" patch (patch 2), but in the meantime this
one is catching some people.

Basically, curve() which draws circles and ellipses was re-using
previously freed memory.

Thanks go to Bill Cheng (william@cs.ucla.edu) who found the bug.

Here is the context diff:

*** curve.c.orig  Tue Jan 16 17:21:04 1990
--- curve.c     Thu Feb 22 15:58:24 1990
***************
*** 117,121
                }
        pw_lines(window, points, npoints, val? PAINT: ERASE,
                        thick, area_fill);
-       free(points);
        }

--- 117,120 -----
                }
        pw_lines(window, points, npoints, val? PAINT: ERASE,
                        thick, area_fill);
        }

_____________________________________
Brian V. Smith    (bvsmith@lbl.gov)
Lawrence Berkeley Laboratory
I don't speak for LBL, these non-opinions are all mine.