summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvPoly.c
diff options
context:
space:
mode:
authorpspjuth <peter.spjuth@gmail.com>2011-04-22 18:21:05 (GMT)
committerpspjuth <peter.spjuth@gmail.com>2011-04-22 18:21:05 (GMT)
commit241ce388b466cd9ccd0c7ab90aa1a5c3e2fb3f09 (patch)
tree5bb443774b1c95de47d0ef87d86d34d6156cf862 /generic/tkCanvPoly.c
parentbfadafaee53e84d53076880ad0e586c7d36ce96c (diff)
parent96d0f850a44c11b73df5d7ca2f775a03d4ecf085 (diff)
downloadtk-241ce388b466cd9ccd0c7ab90aa1a5c3e2fb3f09.zip
tk-241ce388b466cd9ccd0c7ab90aa1a5c3e2fb3f09.tar.gz
tk-241ce388b466cd9ccd0c7ab90aa1a5c3e2fb3f09.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.c1
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;