[LayaAir 2.0]Button销毁时,未对_clickHandler进行回收
源代码:
destroy(destroyChild = true) {destroy方法,对 _clickHandler 置空处理,如果this._clickHandler 不为null是,没有将hangdler回收
super.destroy(destroyChild);
this._bitmap && this._bitmap.destroy();
this._text && this._text.destroy(destroyChild);
this._bitmap = null;
this._text = null;
this._clickHandler = null;
this._labelColors = this._sources = this._strokeColors = null;
}
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Laya_z
赞同来自: