mirror of https://github.com/axmolengine/axmol.git
closed #4568: Application crashes on closing if CC_ENABLE_CACHE_TEXTURE_DATA is enabled.
CC_SAFE_RELEASE(_eventDispatcher); should be after 'delete _renderer;' in Director's destructor.
This commit is contained in:
parent
ba38268167
commit
63f54cb5f7
|
@ -176,7 +176,7 @@ Director::~Director(void)
|
|||
CC_SAFE_RELEASE(_notificationNode);
|
||||
CC_SAFE_RELEASE(_scheduler);
|
||||
CC_SAFE_RELEASE(_actionManager);
|
||||
CC_SAFE_RELEASE(_eventDispatcher);
|
||||
|
||||
|
||||
delete _eventAfterUpdate;
|
||||
delete _eventAfterDraw;
|
||||
|
@ -189,6 +189,8 @@ Director::~Director(void)
|
|||
delete _console;
|
||||
#endif
|
||||
|
||||
CC_SAFE_RELEASE(_eventDispatcher);
|
||||
|
||||
// clean auto release pool
|
||||
PoolManager::destroyInstance();
|
||||
|
||||
|
|
Loading…
Reference in New Issue