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