mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-25 13:42:37 +00:00
DM: Fix two memory leaks
This commit is contained in:
parent
2458fd090c
commit
0ee75674fc
@ -183,6 +183,7 @@ void DMEngine::saveGame() {
|
||||
if (saveAndPlayChoice == kLoad) {
|
||||
GUI::SaveLoadChooser *dialog = new GUI::SaveLoadChooser(_("Restore game:"), _("Restore"), false);
|
||||
int loadSlot = dialog->runModalWithCurrentTarget();
|
||||
delete dialog;
|
||||
if (loadSlot >= 0) {
|
||||
_loadSaveSlotAtRuntime = loadSlot;
|
||||
return;
|
||||
|
@ -163,6 +163,7 @@ MenuMan::MenuMan(DMEngine *vm) : _vm(vm) {
|
||||
|
||||
MenuMan::~MenuMan() {
|
||||
delete[] _bitmapSpellAreaLine;
|
||||
delete[] _bitmapSpellAreaLines;
|
||||
}
|
||||
|
||||
void MenuMan::drawMovementArrows() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user