diff options
author | Einar Johan Trøan Sømåen | 2013-01-24 17:24:31 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-01-24 17:24:31 +0100 |
commit | 5453f7f7e6f7d1f407e5c8606e596ee0de5feb23 (patch) | |
tree | 16fcbb170f589285f78cce0aa4ccc959728e149f /engines/wintermute/base/gfx | |
parent | 9d7bcd4aaa96875941dc7518684469a437c75022 (diff) | |
download | scummvm-rg350-5453f7f7e6f7d1f407e5c8606e596ee0de5feb23.tar.gz scummvm-rg350-5453f7f7e6f7d1f407e5c8606e596ee0de5feb23.tar.bz2 scummvm-rg350-5453f7f7e6f7d1f407e5c8606e596ee0de5feb23.zip |
WINTERMUTE: Delete the renderTickets when deleting BaseRenderOSystem
Diffstat (limited to 'engines/wintermute/base/gfx')
-rw-r--r-- | engines/wintermute/base/gfx/osystem/base_render_osystem.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp index 99f910d753..fb0cb781ba 100644 --- a/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp +++ b/engines/wintermute/base/gfx/osystem/base_render_osystem.cpp @@ -69,6 +69,13 @@ BaseRenderOSystem::BaseRenderOSystem(BaseGame *inGame) : BaseRenderer(inGame) { ////////////////////////////////////////////////////////////////////////// BaseRenderOSystem::~BaseRenderOSystem() { + RenderQueueIterator it = _renderQueue.begin(); + while (it != _renderQueue.end()) { + RenderTicket *ticket = *it; + it = _renderQueue.erase(it); + delete ticket; + } + _renderSurface->free(); delete _renderSurface; _blankSurface->free(); |