diff options
author | pspjuth <peter.spjuth@gmail.com> | 2011-04-22 18:24:21 (GMT) |
---|---|---|
committer | pspjuth <peter.spjuth@gmail.com> | 2011-04-22 18:24:21 (GMT) |
commit | 857d165d9662ecd2659b4894b8655d91487bb14a (patch) | |
tree | 6d17f823dc66eb53358a709b288da44d6a0922b9 /generic/tkCanvPoly.c | |
parent | 98c7dcb18c3549b5f1a87d8e23f2c656bea467e5 (diff) | |
parent | 241ce388b466cd9ccd0c7ab90aa1a5c3e2fb3f09 (diff) | |
download | tk-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/tkCanvPoly.c')
-rw-r--r-- | generic/tkCanvPoly.c | 1 |
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; |