summaryrefslogtreecommitdiffstats
path: root/generic
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)
commitc4c9147d6b5d077de8e3ed08689177654fcb3139 (patch)
tree5bb443774b1c95de47d0ef87d86d34d6156cf862 /generic
parent98811ad6e4133460d650c026452187d6eaef904d (diff)
parent83af76de9c81339f45ac8abbf7b7fae77de40220 (diff)
downloadtk-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.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;