mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
Merge pull request #238 from pandamicro/v0.7
Fix issue when Mask is created without being loaded
This commit is contained in:
@@ -58,8 +58,8 @@ var Mask = cc.Class({
|
||||
|
||||
onDestroy: function () {
|
||||
if (cc.sys.isNative) {
|
||||
this._clippingStencil.release();
|
||||
this._clippingNode.release();
|
||||
this._clippingStencil && this._clippingStencil.release();
|
||||
this._clippingNode && this._clippingNode.release();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user