diff --git a/lib/OpenLayers/Feature.js b/lib/OpenLayers/Feature.js index d8d3341638..83b58dda98 100644 --- a/lib/OpenLayers/Feature.js +++ b/lib/OpenLayers/Feature.js @@ -44,6 +44,12 @@ OpenLayers.Feature.prototype= { * */ destroy: function() { + + //remove the popup from the map + if (this.popup != null) { + this.layer.map.removePopup(this.popup); + } + this.events = null; this.layer = null; this.id = null;