diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index 156d2be6dd..f8797d2b8c 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -46,6 +46,14 @@ OpenLayers.Layer.WFS.prototype = } }, + /** + * + */ + destroy: function() { + OpenLayers.Layer.Grid.prototype.destroy.apply(this, arguments); + OpenLayers.Layer.Markers.prototype.destroy.apply(this, arguments); + }, + /** * @param {OpenLayers.Bounds} bounds * @param {Boolean} zoomChanged