diff options
author | Sven Hesse | 2007-07-01 02:01:19 +0000 |
---|---|---|
committer | Sven Hesse | 2007-07-01 02:01:19 +0000 |
commit | 6a2bbea165c26ca167886e9a57bbd701b383f700 (patch) | |
tree | fd097ccb4c0f77057c79cb111f93bd75ef75f8ec /engines | |
parent | b49b2b7db386b5be961bf9388c6cdc47329a1e68 (diff) | |
download | scummvm-rg350-6a2bbea165c26ca167886e9a57bbd701b383f700.tar.gz scummvm-rg350-6a2bbea165c26ca167886e9a57bbd701b383f700.tar.bz2 scummvm-rg350-6a2bbea165c26ca167886e9a57bbd701b383f700.zip |
Applying agentq's screenshot loading fix to the trunk as well
svn-id: r27816
Diffstat (limited to 'engines')
-rw-r--r-- | engines/gob/saveload_v3.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/gob/saveload_v3.cpp b/engines/gob/saveload_v3.cpp index 3f8aeb81bd..b376a8a75c 100644 --- a/engines/gob/saveload_v3.cpp +++ b/engines/gob/saveload_v3.cpp @@ -258,7 +258,10 @@ bool SaveLoad_v3::loadScreenshot(int16 dataVar, int32 size, int32 offset) { } in->seek(1040 + varSize * 2); - return loadSprite(*in, size); + + bool success = loadSprite(*in, size); + delete in; + return success; } else warning("Invalid attempt at loading a screenshot (%d, %d, %d, %d)", |