WAGE: Free memory for buttons when dialog is destroyed

This commit is contained in:
Torbjörn Andersson 2016-07-15 11:24:05 +02:00
parent 48f99d0b93
commit 9284204cf6

View File

@ -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() {