Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix failed assertion and memory leak with event listeners (axmolengin…
…e#1837) * Fix failed assertion and memory leak with event listeners This solves an issue that was fixed for Cocos2d-x v3.16 and then reverted afterwards for "backwards compatibility". I don't think we need this backwards compatibility anymore, and the benefits to cleaning up this memory outweigh the potential for some developers to need to refactor their code. Specifically this also solves an ASSERT that fails when quitting the game on a scene which has nodes with Event Listeners that I experienced without this change, and with the Config.h setting AX_NODE_DEBUG_VERIFY_EVENT_LISTENERS enabled. * Fixed typo
- Loading branch information