[Scummvm-cvs-logs] scummvm master -> 71b031be12540dc2e19935d2754191d2267d5e18
lordhoto
lordhoto at gmail.com
Fri Jul 5 01:47:15 CEST 2013
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
71b031be12 COMMON: Initialize EventDispatcher::_autoFreeMapper.
Commit: 71b031be12540dc2e19935d2754191d2267d5e18
https://github.com/scummvm/scummvm/commit/71b031be12540dc2e19935d2754191d2267d5e18
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2013-07-04T16:45:09-07:00
Commit Message:
COMMON: Initialize EventDispatcher::_autoFreeMapper.
This fixes a branching on uninitialized variable reported by valgrind on
startup.
Changed paths:
common/EventDispatcher.cpp
diff --git a/common/EventDispatcher.cpp b/common/EventDispatcher.cpp
index dc123e8..e60c1aa 100644
--- a/common/EventDispatcher.cpp
+++ b/common/EventDispatcher.cpp
@@ -24,7 +24,7 @@
namespace Common {
-EventDispatcher::EventDispatcher() : _mapper(0) {
+EventDispatcher::EventDispatcher() : _autoFreeMapper(false), _mapper(0) {
}
EventDispatcher::~EventDispatcher() {
More information about the Scummvm-git-logs
mailing list