issue #6: initialize m_pLastUpdate

This commit is contained in:
Ming 2010-08-04 08:50:51 +00:00
parent 76f62adf62
commit 5404fd879b
1 changed files with 6 additions and 0 deletions

View File

@ -132,6 +132,8 @@ CCDirector* CCDirector::init(void)
m_fContentScaleFactor = 1; m_fContentScaleFactor = 1;
m_obScreenSize = m_obSurfaceSize = CGSizeZero; m_obScreenSize = m_obSurfaceSize = CGSizeZero;
m_pLastUpdate = new struct cc_timeval();
// create autorelease pool // create autorelease pool
NSPoolManager::getInstance()->push(); NSPoolManager::getInstance()->push();
@ -154,6 +156,10 @@ CCDirector::~CCDirector(void)
NSPoolManager::getInstance()->pop(); NSPoolManager::getInstance()->pop();
pobSharedDirector = NULL; pobSharedDirector = NULL;
// delete m_pLastUpdate
delete m_pLastUpdate;
m_pLastUpdate = NULL;
} }
void CCDirector::setGLDefaultValues(void) void CCDirector::setGLDefaultValues(void)