diff options
| author | Filippos Karapetis | 2017-03-22 23:05:38 +0200 | 
|---|---|---|
| committer | Filippos Karapetis | 2017-03-22 23:05:38 +0200 | 
| commit | 3e515890e86e924f7fa270acec0de6462a2bc0d1 (patch) | |
| tree | 935189e7f9764a6a740f97d3ee48a9c4654a78c3 | |
| parent | 8bc03c87c519350344c53ca2e5573d5a6e54368a (diff) | |
| download | scummvm-rg350-3e515890e86e924f7fa270acec0de6462a2bc0d1.tar.gz scummvm-rg350-3e515890e86e924f7fa270acec0de6462a2bc0d1.tar.bz2 scummvm-rg350-3e515890e86e924f7fa270acec0de6462a2bc0d1.zip  | |
FULLPIPE: Plug a memory leak in _dynamicPhases
Free the pixel data of each entry in the _dynamicPhases array before
emptying it
| -rw-r--r-- | engines/fullpipe/statics.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/fullpipe/statics.cpp b/engines/fullpipe/statics.cpp index 58dd00e72a..447b78a3e1 100644 --- a/engines/fullpipe/statics.cpp +++ b/engines/fullpipe/statics.cpp @@ -1538,6 +1538,10 @@ Movement::~Movement() {  		if (_updateFlag1)  			_dynamicPhases.remove_at(0); +		// FIXME: At this point, the last entry in _dynamicPhases is invalid +		for (uint i = 0; i < _dynamicPhases.size() - 1; i++) +			_dynamicPhases[i]->freePixelData(); +  		_dynamicPhases.clear();  	}  | 
