mirror of https://github.com/axmolengine/axmol.git
issue #6: initialize m_pLastUpdate
This commit is contained in:
parent
76f62adf62
commit
5404fd879b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue