mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 08:53:51 +00:00
WAGE: Free memory for buttons when dialog is destroyed
This commit is contained in:
parent
48f99d0b93
commit
9284204cf6
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user