diff options
| author | Eugene Sandulenko | 2016-05-15 13:07:23 +0200 | 
|---|---|---|
| committer | Eugene Sandulenko | 2016-05-15 13:07:23 +0200 | 
| commit | 7526cf82f2279698aecb48aacc97849bed3d410b (patch) | |
| tree | 07530cdff57ef0ac35b41de283be772d02f1a1b2 | |
| parent | 6858dbe2c283615f358af3be357aca452e34cf39 (diff) | |
| download | scummvm-rg350-7526cf82f2279698aecb48aacc97849bed3d410b.tar.gz scummvm-rg350-7526cf82f2279698aecb48aacc97849bed3d410b.tar.bz2 scummvm-rg350-7526cf82f2279698aecb48aacc97849bed3d410b.zip | |
FULLPIPE: Plug memory leak
| -rw-r--r-- | engines/access/inventory.cpp | 1 | ||||
| -rw-r--r-- | engines/fullpipe/motion.cpp | 4 | 
2 files changed, 3 insertions, 2 deletions
| diff --git a/engines/access/inventory.cpp b/engines/access/inventory.cpp index 0a962aa69a..e9874cd8d6 100644 --- a/engines/access/inventory.cpp +++ b/engines/access/inventory.cpp @@ -223,6 +223,7 @@ int InventoryManager::displayInv() {  	else  		_vm->_useItem = -1; +	free(names);  	free(inv);  	return 0;  } diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp index 1a61cb742a..9cf18f3cc2 100644 --- a/engines/fullpipe/motion.cpp +++ b/engines/fullpipe/motion.cpp @@ -855,9 +855,9 @@ Common::Array<MovItem *> *MovGraph::getPaths(StaticANIObject *ani, int x, int y,  			if (sz > 0) {  				for (int j = 0; j < sz; j++)  					_items[idx]->movitems->push_back(movitems[j]); - -				delete movitems;  			} + +			delete movitems;  		}  		delete movarr; | 
