From 98dc015dc1329ef233d4fe9606ab98c26b0f8438 Mon Sep 17 00:00:00 2001 From: richiesams Date: Tue, 3 Sep 2013 00:32:12 -0500 Subject: ZVISION: Free the _currentBackground Surface in RenderManager destructor --- engines/zvision/render_manager.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'engines') diff --git a/engines/zvision/render_manager.cpp b/engines/zvision/render_manager.cpp index ea34469baf..463faefdeb 100644 --- a/engines/zvision/render_manager.cpp +++ b/engines/zvision/render_manager.cpp @@ -54,6 +54,7 @@ RenderManager::RenderManager(OSystem *system, const Common::Rect workingWindow, RenderManager::~RenderManager() { delete[] _workingWindowBuffer; + _currentBackground.free(); } void RenderManager::update(uint deltaTimeInMillis) { -- cgit v1.2.3