summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorpspjuth <peter.spjuth@gmail.com>2011-04-22 18:24:21 (GMT)
committerpspjuth <peter.spjuth@gmail.com>2011-04-22 18:24:21 (GMT)
commit5e053a9a900f6d777f53c5bca67e8d9eb97839ed (patch)
tree6d17f823dc66eb53358a709b288da44d6a0922b9 /generic
parente3bdb35fa365400a2ee311897142c40416330bf4 (diff)
parentc4c9147d6b5d077de8e3ed08689177654fcb3139 (diff)
downloadtk-5e053a9a900f6d777f53c5bca67e8d9eb97839ed.zip
tk-5e053a9a900f6d777f53c5bca67e8d9eb97839ed.tar.gz
tk-5e053a9a900f6d777f53c5bca67e8d9eb97839ed.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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/tkCanvPoly.c b/generic/tkCanvPoly.c
index b043aad..01eeb26 100644
--- a/generic/tkCanvPoly.c
+++ b/generic/tkCanvPoly.c
@@ -1198,6 +1198,7 @@ PolygonDeleteCoords(
polyPtr->numPoints = 0;
if (polyPtr->coordPtr != NULL) {
ckfree(polyPtr->coordPtr);
+ polyPtr->coordPtr = NULL;
}
ComputePolygonBbox(canvas, polyPtr);
return;