Projects > cpp > Issues > Bug #4568

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Application crashes on closing if CC_ENABLE_CACHE_TEXTURE_DATA is enabled

Bug #4568 [Closed]
dotsquid 2014-03-26 11:20 . Updated over 2 years ago

This happens because in Director destructor _eventDispatcher is released before _renderer. If CC_ENABLE_CACHE_TEXTURE_DATA is enabled Renderer destructor tries to get _eventDispatcher which is already released.
To fix this issue put CC_SAFE_RELEASE(_eventDispatcher); after delete _renderer; in Director::~Director

dumganhar 2014-04-17 02:28
dumganhar 2014-04-18 21:15
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:c9532b14c2a91c3e101378e652bb8361139b6c67.

Atom PDF

Status:Closed
Start date:2014-03-26
Priority:Low
Due date:
Assignee:-
% Done:

100%

Category:android, ios, mac, windows
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.