summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvPoly.c
diff options
context:
space:
mode:
authorpeter.spjuth@gmail.com <pspjuth>2011-04-22 18:17:47 (GMT)
committerpeter.spjuth@gmail.com <pspjuth>2011-04-22 18:17:47 (GMT)
commit12458d6ccd8a5c94e653dcbd44d0f03809097af2 (patch)
tree06687de85c9580309c9596b809371c151b98daf9 /generic/tkCanvPoly.c
parent3dbc48209501735842fdfc0ed683c61c675cabbf (diff)
downloadtk-12458d6ccd8a5c94e653dcbd44d0f03809097af2.zip
tk-12458d6ccd8a5c94e653dcbd44d0f03809097af2.tar.gz
tk-12458d6ccd8a5c94e653dcbd44d0f03809097af2.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 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;