* Destroy function * @ignore
()
| 279 | * @ignore |
| 280 | */ |
| 281 | override destroy() { |
| 282 | colorPool.release(this.color); |
| 283 | ellipsePool.release(this.visibleArea); |
| 284 | // The Canvas renderer's per-light gradient cache entry (if any) becomes |
| 285 | // GC-eligible via its WeakMap once this Light2d is no longer referenced. |
| 286 | super.destroy(); |
| 287 | } |
| 288 | } |