Leaflet / Leaflet.Editable

Make geometries editable in Leaflet.
http://leaflet.github.io/Leaflet.Editable/doc/api.html
559 stars 197 forks source link

Memoryleak in unblockEvents function #185

Open FabioWanner opened 5 years ago

FabioWanner commented 5 years ago

In the unblockEvents function, theres the statement: delete this._oldTargets. This does not have the desired effect, causing this._oldTargets to grow indefinitely.

This issue will lead to performance problems and eventually crashes (out of memory). It becomes a problem when working with tousands of layers.

this._oldTargets = {}; solves the problem.