diff --git a/cocos/gui/UILayout.cpp b/cocos/gui/UILayout.cpp index c9dffd1818..2cc1929ebd 100644 --- a/cocos/gui/UILayout.cpp +++ b/cocos/gui/UILayout.cpp @@ -85,7 +85,7 @@ _currentAlphaTestRef(1) Layout::~Layout() { - setClippingEnabled(false); + CC_SAFE_RELEASE(_clippingStencil); } void Layout::onEnter()