fixed #1553: fixed a memory leak in CCControlButton.

This commit is contained in:
James Chen 2013-01-21 10:16:07 +08:00
parent 0533c8cb58
commit 571d86d51d
1 changed files with 2 additions and 0 deletions

View File

@ -63,6 +63,8 @@ CCControlButton::CCControlButton()
CCControlButton::~CCControlButton()
{
CC_SAFE_RELEASE(m_currentTitle);
CC_SAFE_RELEASE(m_titleLabel);
CC_SAFE_RELEASE(m_backgroundSpriteDispatchTable);
CC_SAFE_RELEASE(m_titleLabelDispatchTable);
CC_SAFE_RELEASE(m_titleColorDispatchTable);