issue #35: fix bug of startWithTarget()

This commit is contained in:
Ming 2010-08-11 07:04:34 +00:00
parent a934e49e31
commit 1873732182
1 changed files with 4 additions and 1 deletions

View File

@ -1745,7 +1745,10 @@ void CCAnimate::startWithTarget(cocos2d::NSObject *pTarget)
__super::startWithTarget(pTarget);
CCSprite *pSprite = dynamic_cast<CCSprite*>(pTarget);
m_pOrigFrame->release();
if (m_pOrigFrame)
{
m_pOrigFrame->release();
}
if (m_bRestoreOriginalFrame)
{