From 60b340f2cdbdb37b1917c256fdb441adcdfb1cd3 Mon Sep 17 00:00:00 2001 From: CaiWenzhi Date: Mon, 6 Jan 2014 15:59:21 +0800 Subject: [PATCH] Modify wrong codes --- cocos/gui/UILayout.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()