aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/gfx
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-01-24 17:24:31 +0100
committerEinar Johan Trøan Sømåen2013-01-24 17:24:31 +0100
commit5453f7f7e6f7d1f407e5c8606e596ee0de5feb23 (patch)
tree16fcbb170f589285f78cce0aa4ccc959728e149f /engines/wintermute/base/gfx
parent9d7bcd4aaa96875941dc7518684469a437c75022 (diff)
downloadscummvm-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.cpp7
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();