diff options
author | Torbjörn Andersson | 2016-07-15 11:24:05 +0200 |
---|---|---|
committer | Torbjörn Andersson | 2016-07-15 11:24:05 +0200 |
commit | 9284204cf698dc75cd5efac84e6a0f2ba792e857 (patch) | |
tree | f410bd0f75999015117f8181e0069a6e733da016 /engines | |
parent | 48f99d0b930f40031fd12593e0df7f6936c7db1a (diff) | |
download | scummvm-rg350-9284204cf698dc75cd5efac84e6a0f2ba792e857.tar.gz scummvm-rg350-9284204cf698dc75cd5efac84e6a0f2ba792e857.tar.bz2 scummvm-rg350-9284204cf698dc75cd5efac84e6a0f2ba792e857.zip |
WAGE: Free memory for buttons when dialog is destroyed
Diffstat (limited to 'engines')
-rw-r--r-- | engines/wage/dialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/wage/dialog.cpp b/engines/wage/dialog.cpp index d9bb3e6a61..86080c9a6f 100644 --- a/engines/wage/dialog.cpp +++ b/engines/wage/dialog.cpp @@ -86,6 +86,8 @@ Dialog::Dialog(Gui *gui, int width, const char *text, DialogButtonArray *buttons } Dialog::~Dialog() { + for (uint i = 0; i < _buttons->size(); i++) + delete _buttons->operator[](i); } const Graphics::Font *Dialog::getDialogFont() { |