DM: Fix two memory leaks

This commit is contained in:
Strangerke 2016-09-20 23:26:23 +02:00
parent 2458fd090c
commit 0ee75674fc
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -163,6 +163,7 @@ MenuMan::MenuMan(DMEngine *vm) : _vm(vm) {
MenuMan::~MenuMan() {
delete[] _bitmapSpellAreaLine;
delete[] _bitmapSpellAreaLines;
}
void MenuMan::drawMovementArrows() {