From 571d86d51dded72691269feb55d32bf0a44505fc Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 21 Jan 2013 10:16:07 +0800 Subject: [PATCH] fixed #1553: fixed a memory leak in CCControlButton. --- extensions/GUI/CCControlExtension/CCControlButton.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/GUI/CCControlExtension/CCControlButton.cpp b/extensions/GUI/CCControlExtension/CCControlButton.cpp index 5f9a1bd9f8..8b2a1e6a53 100644 --- a/extensions/GUI/CCControlExtension/CCControlButton.cpp +++ b/extensions/GUI/CCControlExtension/CCControlButton.cpp @@ -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);