diff options
-rw-r--r-- | engines/zvision/render_manager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/render_manager.cpp b/engines/zvision/render_manager.cpp index 2d45ad835d..e705a7f8b4 100644 --- a/engines/zvision/render_manager.cpp +++ b/engines/zvision/render_manager.cpp @@ -166,6 +166,9 @@ void RenderManager::setBackgroundImage(const Common::String &fileName) { return; } + if (_currentBackground != 0) { + delete _currentBackground; + } _currentBackground = file; renderImageToScreen(*_currentBackground, 0, 0, Common::Rect(), true); |