Commit small change to destroy events objects when destroying objects with
events. This removes a number of minor memory leaks with creating/destroying popups, layers, features, and markers. git-svn-id: http://svn.openlayers.org/trunk/openlayers@2894 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -154,6 +154,8 @@ OpenLayers.Layer.prototype = {
|
||||
this.name = null;
|
||||
this.div = null;
|
||||
this.options = null;
|
||||
|
||||
this.events.destroy();
|
||||
this.events = null;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user