diff options
author | D G Turner | 2011-12-31 00:28:27 +0000 |
---|---|---|
committer | D G Turner | 2011-12-31 00:28:27 +0000 |
commit | b704e40bae69dcdc54b85e934ec3862d60bfdb5b (patch) | |
tree | e5094572685d9cda0c3819240e1ccd9db6e7d890 /engines | |
parent | b89bc000d96fce9d4e977b8ad59391282e35704e (diff) | |
download | scummvm-rg350-b704e40bae69dcdc54b85e934ec3862d60bfdb5b.tar.gz scummvm-rg350-b704e40bae69dcdc54b85e934ec3862d60bfdb5b.tar.bz2 scummvm-rg350-b704e40bae69dcdc54b85e934ec3862d60bfdb5b.zip |
TSAGE: Close memory leak in savegame thumbnail.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/saveload.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/tsage/saveload.cpp b/engines/tsage/saveload.cpp index e56968acdf..af2f3566ad 100644 --- a/engines/tsage/saveload.cpp +++ b/engines/tsage/saveload.cpp @@ -189,6 +189,8 @@ Common::Error Saver::restore(int slot) { // Read in the savegame header tSageSavegameHeader header; readSavegameHeader(saveFile, header); + if (header.thumbnail) + header.thumbnail->free(); delete header.thumbnail; serializer.setSaveVersion(header.version); |