diff options
author | pspjuth <peter.spjuth@gmail.com> | 2011-04-22 18:21:05 (GMT) |
---|---|---|
committer | pspjuth <peter.spjuth@gmail.com> | 2011-04-22 18:21:05 (GMT) |
commit | c4c9147d6b5d077de8e3ed08689177654fcb3139 (patch) | |
tree | 5bb443774b1c95de47d0ef87d86d34d6156cf862 /generic | |
parent | 98811ad6e4133460d650c026452187d6eaef904d (diff) | |
parent | 83af76de9c81339f45ac8abbf7b7fae77de40220 (diff) | |
download | tk-c4c9147d6b5d077de8e3ed08689177654fcb3139.zip tk-c4c9147d6b5d077de8e3ed08689177654fcb3139.tar.gz tk-c4c9147d6b5d077de8e3ed08689177654fcb3139.tar.bz2 |
[Bug 3291543] There was a crash if dchars removed all coordinates of a polygon.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkCanvPoly.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tkCanvPoly.c b/generic/tkCanvPoly.c index 1e61367..92375b9 100644 --- a/generic/tkCanvPoly.c +++ b/generic/tkCanvPoly.c @@ -1200,6 +1200,7 @@ PolygonDeleteCoords( polyPtr->numPoints = 0; if (polyPtr->coordPtr != NULL) { ckfree((char *) polyPtr->coordPtr); + polyPtr->coordPtr = NULL; } ComputePolygonBbox(canvas, polyPtr); return; |