---
# System prepended metadata

title: Memory Leak Issue

---

# Memory Leak Issue

1. array的重置方式
:::danger
X: array = []
:::
:::info
O: array.length = 0
:::
3. egret.Point.release要搭配create使用
:::danger
X: point = new egret.Point or localToGlobal
egret.Point.release(point)
:::
:::info
O: point = egret.Point.create(x,y)
egret.Point.release(point)
:::