diff --git a/cocos2d/core/components/CCMask.js b/cocos2d/core/components/CCMask.js index 4943455b24..b2415453cb 100644 --- a/cocos2d/core/components/CCMask.js +++ b/cocos2d/core/components/CCMask.js @@ -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(); } },