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)
commit857d165d9662ecd2659b4894b8655d91487bb14a (patch)
tree6d17f823dc66eb53358a709b288da44d6a0922b9 /generic
parent98c7dcb18c3549b5f1a87d8e23f2c656bea467e5 (diff)
parent241ce388b466cd9ccd0c7ab90aa1a5c3e2fb3f09 (diff)
downloadtk-857d165d9662ecd2659b4894b8655d91487bb14a.zip
tk-857d165d9662ecd2659b4894b8655d91487bb14a.tar.gz
tk-857d165d9662ecd2659b4894b8655d91487bb14a.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;