[Scummvm-git-logs] scummvm master -> 0ee75674fcfc545d2f0fb55cebe909cee506ea8e
Strangerke
Strangerke at scummvm.org
Tue Sep 20 23:36:19 CEST 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
0ee75674fc DM: Fix two memory leaks
Commit: 0ee75674fcfc545d2f0fb55cebe909cee506ea8e
https://github.com/scummvm/scummvm/commit/0ee75674fcfc545d2f0fb55cebe909cee506ea8e
Author: Strangerke (strangerke at scummvm.org)
Date: 2016-09-20T23:26:23+02:00
Commit Message:
DM: Fix two memory leaks
Changed paths:
engines/dm/loadsave.cpp
engines/dm/menus.cpp
diff --git a/engines/dm/loadsave.cpp b/engines/dm/loadsave.cpp
index 9f19b92..111280c 100644
--- a/engines/dm/loadsave.cpp
+++ b/engines/dm/loadsave.cpp
@@ -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;
diff --git a/engines/dm/menus.cpp b/engines/dm/menus.cpp
index 7ced12e..5cbb469 100644
--- a/engines/dm/menus.cpp
+++ b/engines/dm/menus.cpp
@@ -163,6 +163,7 @@ MenuMan::MenuMan(DMEngine *vm) : _vm(vm) {
MenuMan::~MenuMan() {
delete[] _bitmapSpellAreaLine;
+ delete[] _bitmapSpellAreaLines;
}
void MenuMan::drawMovementArrows() {
More information about the Scummvm-git-logs
mailing list