Ticket #1346: destroy_once.patch
| File destroy_once.patch, 0.6 kB (added by crschmidt, 1 year ago) |
|---|
-
lib/OpenLayers/Control.js
old new 165 165 * to prevent memory leaks. 166 166 */ 167 167 destroy: function () { 168 // Only destroy once. 169 if (this.events == null) { 170 return; 171 } 168 172 this.events.destroy(); 169 173 this.events = null; 174 170 175 // eliminate circular references 171 176 if (this.handler) { 172 177 this.handler.destroy();
