diff options
-rw-r--r-- | common/EventDispatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/EventDispatcher.cpp b/common/EventDispatcher.cpp index 20a5b5eaac..e60c1aa7ff 100644 --- a/common/EventDispatcher.cpp +++ b/common/EventDispatcher.cpp @@ -71,11 +71,11 @@ void EventDispatcher::dispatch() { } void EventDispatcher::registerMapper(EventMapper *mapper, bool autoFree) { - _autoFreeMapper = autoFree; if (_autoFreeMapper) { delete _mapper; } _mapper = mapper; + _autoFreeMapper = autoFree; } |