diff --git a/lib/OpenLayers/Handler/Polygon.js b/lib/OpenLayers/Handler/Polygon.js index e59c16b884..a3374af8f4 100644 --- a/lib/OpenLayers/Handler/Polygon.js +++ b/lib/OpenLayers/Handler/Polygon.js @@ -64,8 +64,9 @@ OpenLayers.Handler.Polygon = OpenLayers.Class(OpenLayers.Handler.Path, { * Destroy temporary geometries */ destroyFeature: function() { + OpenLayers.Handler.Path.prototype.destroyFeature.apply(this); this.polygon.destroy(); - this.point.destroy(); + this.polygon = null; }, /** diff --git a/tests/list-tests.html b/tests/list-tests.html index 66271b60eb..4f436c99bd 100644 --- a/tests/list-tests.html +++ b/tests/list-tests.html @@ -75,5 +75,6 @@