diff options
author | lukaslw | 2014-05-31 22:55:22 +0200 |
---|---|---|
committer | lukaslw | 2014-06-22 20:08:29 +0200 |
commit | 806b633f553a51b976156b7f6653549716b80d0d (patch) | |
tree | dff2ae59d52f6a30bac102011a281ffad9f30554 /engines | |
parent | 421b27f2c7bc20ed90fbee36d3873145a5bb2f6a (diff) | |
download | scummvm-rg350-806b633f553a51b976156b7f6653549716b80d0d.tar.gz scummvm-rg350-806b633f553a51b976156b7f6653549716b80d0d.tar.bz2 scummvm-rg350-806b633f553a51b976156b7f6653549716b80d0d.zip |
PRINCE: _maskList memory clearing fix
Diffstat (limited to 'engines')
-rw-r--r-- | engines/prince/prince.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/prince/prince.cpp b/engines/prince/prince.cpp index 1c5aaa1834..6a65ee162b 100644 --- a/engines/prince/prince.cpp +++ b/engines/prince/prince.cpp @@ -115,6 +115,11 @@ PrinceEngine::~PrinceEngine() { } _objList.clear(); + for (uint i = 0; i < _maskList.size(); i++) { + free(_maskList[i]._data); + } + _maskList.clear(); + clearBackAnimList(); for (uint i = 0; i < _mainHero->_moveSet.size(); i++) { |