Ticket #636 (closed bug: fixed)
Layer destroy() needs to be wary of double-destroys
| Reported by: | euzuro | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 2.4 Release |
| Component: | Layer | Version: | 2.4 RC1 |
| Keywords: | Cc: | ||
| State: |
Description
If OpenLayers.Layer.destroy() gets called twice, line 191:
this.events.destroy();
will raise an error, because this.events will be nulled out.
This might happen in a custom layer which implements more than one Layer superclass, (like OpenLayers.Layer.Markers and OpenLayers.Layer.HTTPRequest, for example), since it should be calling both destroys, and both destroys will call the generic OpenLayers.Layer.destroy()
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

