ZVISION: Fix memory leak

This commit is contained in:
richiesams 2013-08-11 16:38:10 -05:00
parent 00a17a66d0
commit a49b77cd79

View File

@ -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);