diff options
author | Torbjörn Andersson | 2004-01-07 07:42:00 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-01-07 07:42:00 +0000 |
commit | 6d0dd6aee8abc6fbf032f925cd77a46528158646 (patch) | |
tree | 5eb446b2f65ffcbcf8983cb5f85b533d9d583a59 /sword2/logic.h | |
parent | 9fc9e6be20bd9b81ba77e8fd503880417ed10d07 (diff) | |
download | scummvm-rg350-6d0dd6aee8abc6fbf032f925cd77a46528158646.tar.gz scummvm-rg350-6d0dd6aee8abc6fbf032f925cd77a46528158646.tar.bz2 scummvm-rg350-6d0dd6aee8abc6fbf032f925cd77a46528158646.zip |
Valgrind fixes. Mostly about memory not being freed when the engine is
deleted.
svn-id: r12211
Diffstat (limited to 'sword2/logic.h')
-rw-r--r-- | sword2/logic.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sword2/logic.h b/sword2/logic.h index 99dedc2744..fc44ce8ac8 100644 --- a/sword2/logic.h +++ b/sword2/logic.h @@ -164,11 +164,11 @@ public: Logic(Sword2Engine *vm) : _vm(vm), _globals(NULL), _kills(0), _debugFlag(false), _smackerLeadOut(0), _sequenceTextLines(0), _speechTime(0), - _animId(0), _leftClickDelay(0), _rightClickDelay(0), - _defaultResponseId(0), _totalStartups(0), - _totalScreenManagers(0), _officialTextNumber(0), - _speechScriptWaiting(0), _speechTextBlocNo(0), - _choosing(false), _unpauseZone(0) { + _animId(0), _speechAnimType(0), _leftClickDelay(0), + _rightClickDelay(0), _defaultResponseId(0), + _totalStartups(0), _totalScreenManagers(0), + _officialTextNumber(0), _speechScriptWaiting(0), + _speechTextBlocNo(0), _choosing(false), _unpauseZone(0) { memset(_subjectList, 0, sizeof(_subjectList)); memset(_eventList, 0, sizeof(_eventList)); memset(_syncList, 0, sizeof(_syncList)); @@ -176,6 +176,10 @@ public: initStartMenu(); } + ~Logic() { + delete _router; + } + // "TEXT" - current official text line number - will match the wav // filenames |