diff options
author | lecoanet | 2004-02-23 10:42:33 +0000 |
---|---|---|
committer | lecoanet | 2004-02-23 10:42:33 +0000 |
commit | 30852dd99b28fddaef4ac37bfa225da343c6be7e (patch) | |
tree | 4797732f831b232a20f1bdb7a723544abdfd2941 /generic/Geo.c | |
parent | 12eb7b6473fcb633748cad4354690336de81ff3b (diff) | |
download | tkzinc-30852dd99b28fddaef4ac37bfa225da343c6be7e.zip tkzinc-30852dd99b28fddaef4ac37bfa225da343c6be7e.tar.gz tkzinc-30852dd99b28fddaef4ac37bfa225da343c6be7e.tar.bz2 tkzinc-30852dd99b28fddaef4ac37bfa225da343c6be7e.tar.xz |
Fixed an uninitialized controls pointer leading to unexepected behavior when adding a contour from a curve item
Diffstat (limited to 'generic/Geo.c')
-rw-r--r-- | generic/Geo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/Geo.c b/generic/Geo.c index 5a284c1..ed33e4b 100644 --- a/generic/Geo.c +++ b/generic/Geo.c @@ -59,6 +59,7 @@ ZnPolyContour1(ZnPoly *poly, poly->contour1.num_points = num_pts; poly->contour1.points = pts; poly->contour1.cw = cw; + poly->contour1.controls = NULL; } void @@ -86,6 +87,9 @@ ZnPolyFree(ZnPoly *poly) unsigned int i; for (i = 0; i < poly->num_contours; i++) { ZnFree(poly->contours[i].points); +/* if (poly->contours[i].controls) { + ZnFree(poly->contours[i].controls); + }*/ } if ((poly->contours != &poly->contour1) && (poly->num_contours > 1)) { |