aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/EventDispatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/EventDispatcher.cpp b/common/EventDispatcher.cpp
index e60c1aa7ff..20a5b5eaac 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;
}