diff options
author | RichieSams | 2013-09-22 15:55:22 -0500 |
---|---|---|
committer | RichieSams | 2013-09-22 15:55:22 -0500 |
commit | a7ffd9ade641a2fd63ea8b04822942bda16a8f4c (patch) | |
tree | 8df12f37fc3496dd43ce13b9d169b9340ca9bfbc /engines | |
parent | 701250efb57ef94e35d2b7b6f0d6d045b713e6f5 (diff) | |
download | scummvm-rg350-a7ffd9ade641a2fd63ea8b04822942bda16a8f4c.tar.gz scummvm-rg350-a7ffd9ade641a2fd63ea8b04822942bda16a8f4c.tar.bz2 scummvm-rg350-a7ffd9ade641a2fd63ea8b04822942bda16a8f4c.zip |
ZVISION: Cleanup all AlphaEntries after use
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/render_manager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/zvision/render_manager.cpp b/engines/zvision/render_manager.cpp index dc942fe3d0..d0356abba4 100644 --- a/engines/zvision/render_manager.cpp +++ b/engines/zvision/render_manager.cpp @@ -57,6 +57,10 @@ RenderManager::~RenderManager() { _workingWindowBuffer.free(); _currentBackground.free(); _backBuffer.free(); + + for (Common::HashMap<uint32, AlphaDataEntry>::iterator iter = _alphaDataEntries.begin(); iter != _alphaDataEntries.end(); iter++) { + delete (*iter)._value.data; + } } void RenderManager::update(uint deltaTimeInMillis) { |