Merge pull request #354 from minggo/iss577

[android] fixed #577: init member variable to default value
This commit is contained in:
minggo 2011-07-06 00:25:38 -07:00
commit 6129e33794
2 changed files with 6 additions and 0 deletions

View File

@ -1952,6 +1952,11 @@ CCObject* CCReverseTime::copyWithZone(cocos2d::CCZone *pZone)
return pCopy;
}
CCReverseTime::CCReverseTime() : m_pOther(NULL)
{
}
CCReverseTime::~CCReverseTime(void)
{
CC_SAFE_RELEASE(m_pOther);

View File

@ -641,6 +641,7 @@ class CC_DLL CCReverseTime : public CCActionInterval
{
public:
~CCReverseTime(void);
CCReverseTime();
/** initializes the action */
bool initWithAction(CCFiniteTimeAction *pAction);