Fix for memory leak in canvas renderer (#6117)

This commit is contained in:
Anton Joy 2018-04-05 15:24:38 +03:00 committed by Vladimir Agafonkin
parent 22d9cfee93
commit 27989c55dd

View File

@ -161,6 +161,8 @@ export var Canvas = Renderer.extend({
this._drawFirst = next;
}
delete this._drawnLayers[layer._leaflet_id];
delete layer._order;
delete this._layers[Util.stamp(layer)];