diff options
author | Torbjörn Andersson | 2006-05-31 13:36:01 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-31 13:36:01 +0000 |
commit | 85da5d8157c0e0faf80f6cb7e8f39a3230ab7bc9 (patch) | |
tree | de6be224cf0403fba17fb1242eb9da42964064a6 /engines | |
parent | 09074b1685e4d2f7555c24b7b011eb3ea13c562b (diff) | |
download | scummvm-rg350-85da5d8157c0e0faf80f6cb7e8f39a3230ab7bc9.tar.gz scummvm-rg350-85da5d8157c0e0faf80f6cb7e8f39a3230ab7bc9.tar.bz2 scummvm-rg350-85da5d8157c0e0faf80f6cb7e8f39a3230ab7bc9.zip |
Fixed two Valgrind warnings. But there are still a couple of invalid reads
at startup.
svn-id: r22800
Diffstat (limited to 'engines')
-rw-r--r-- | engines/lure/game.cpp | 2 | ||||
-rw-r--r-- | engines/lure/res.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/engines/lure/game.cpp b/engines/lure/game.cpp index 5c3fb365b1..365c82939e 100644 --- a/engines/lure/game.cpp +++ b/engines/lure/game.cpp @@ -93,6 +93,8 @@ void Game::execute() { //_screen.resetPalette(); screen.setPaletteEmpty(); + setState(0); + Script::execute(STARTUP_SCRIPT); // Load the first room diff --git a/engines/lure/res.cpp b/engines/lure/res.cpp index 109db12ef3..ee1d8ca395 100644 --- a/engines/lure/res.cpp +++ b/engines/lure/res.cpp @@ -61,7 +61,7 @@ void Resources::freeData() { free(_hotspotScriptData); delete _messagesData; delete _cursors; - delete _charOffsets; + delete [] _charOffsets; delete _playerSupportRecord; } |