mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-05 10:26:40 +00:00
ZVISION: Fix memory leak
This commit is contained in:
parent
00a17a66d0
commit
a49b77cd79
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user