diff options
author | pspjuth <peter.spjuth@gmail.com> | 2011-04-22 18:17:47 (GMT) |
---|---|---|
committer | pspjuth <peter.spjuth@gmail.com> | 2011-04-22 18:17:47 (GMT) |
commit | 96d0f850a44c11b73df5d7ca2f775a03d4ecf085 (patch) | |
tree | 06687de85c9580309c9596b809371c151b98daf9 /generic/tkCanvPoly.c | |
parent | 8c2d7f6d86393ac9149aa1b2fcada1f52bfada55 (diff) | |
download | tk-96d0f850a44c11b73df5d7ca2f775a03d4ecf085.zip tk-96d0f850a44c11b73df5d7ca2f775a03d4ecf085.tar.gz tk-96d0f850a44c11b73df5d7ca2f775a03d4ecf085.tar.bz2 |
[Bug 3291543] There was a crash if dchars removed all coordinates of a polygon.
Diffstat (limited to 'generic/tkCanvPoly.c')
-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 798576b..96867a8 100644 --- a/generic/tkCanvPoly.c +++ b/generic/tkCanvPoly.c @@ -1187,6 +1187,7 @@ PolygonDeleteCoords(canvas, itemPtr, first, last) polyPtr->numPoints = 0; if(polyPtr->coordPtr != NULL) { ckfree((char *) polyPtr->coordPtr); + polyPtr->coordPtr = NULL; } ComputePolygonBbox(canvas, polyPtr); return; |