mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
LAB: Close _curBitmap before deleting it
This commit is contained in:
parent
b53735ba06
commit
eba44d3094
@ -105,8 +105,11 @@ void DisplayMan::readPict(const Common::String filename, bool playOnce, bool onl
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DisplayMan::freePict() {
|
void DisplayMan::freePict() {
|
||||||
delete _curBitmap;
|
if (_curBitmap) {
|
||||||
_curBitmap = nullptr;
|
_curBitmap->close();
|
||||||
|
delete _curBitmap;
|
||||||
|
_curBitmap = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Common::String DisplayMan::getWord(const char *mainBuffer) {
|
Common::String DisplayMan::getWord(const char *mainBuffer) {
|
||||||
|
Loading…
Reference in New Issue
Block a user