diff options
| author | Paul Gilbert | 2011-09-25 09:09:54 +1000 | 
|---|---|---|
| committer | Paul Gilbert | 2011-09-25 09:09:54 +1000 | 
| commit | 23729c206396e336cc83198f67b108dc3b315b21 (patch) | |
| tree | 62a88c7966e573a2c49a1b1e4004bb4d548cd36a | |
| parent | e552bc57baf616daae8fb8831b6bf10c933db106 (diff) | |
| download | scummvm-rg350-23729c206396e336cc83198f67b108dc3b315b21.tar.gz scummvm-rg350-23729c206396e336cc83198f67b108dc3b315b21.tar.bz2 scummvm-rg350-23729c206396e336cc83198f67b108dc3b315b21.zip  | |
TSAGE: Fix Valgrind warnings
| -rw-r--r-- | engines/tsage/core.cpp | 1 | ||||
| -rw-r--r-- | engines/tsage/detection.cpp | 2 | 
2 files changed, 3 insertions, 0 deletions
diff --git a/engines/tsage/core.cpp b/engines/tsage/core.cpp index f1542dc56e..a625bdf78d 100644 --- a/engines/tsage/core.cpp +++ b/engines/tsage/core.cpp @@ -2962,6 +2962,7 @@ void Visage::flip(GfxSurface &gfxSurface) {  Player::Player(): SceneObject() {  	_canWalk = false; +	_enabled = false;  	_uiEnabled = false;  	_field8C = 0;  } diff --git a/engines/tsage/detection.cpp b/engines/tsage/detection.cpp index f12efc02e8..8a4b834f46 100644 --- a/engines/tsage/detection.cpp +++ b/engines/tsage/detection.cpp @@ -131,6 +131,8 @@ public:  				if (in) {  					if (TsAGE::Saver::readSavegameHeader(in, header)) {  						saveList.push_back(SaveStateDescriptor(slot, header.saveName)); + +						header.thumbnail->free();  						delete header.thumbnail;  					}  | 
