Fixes two memory leaks in EventDispatcher::removeEventListener(removeEventListeners).
Merge pull request #4802 from dumganhar/develop

Fixes two memory leaks in EventDispatcher::removeEventListener(removeEventListeners).