diff options
-rw-r--r-- | gui/saveload-dialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/saveload-dialog.cpp b/gui/saveload-dialog.cpp index 45bf1c49fc..1a6083bf9e 100644 --- a/gui/saveload-dialog.cpp +++ b/gui/saveload-dialog.cpp @@ -595,8 +595,11 @@ int LoadChooserThumbnailed::runIntern() { void LoadChooserThumbnailed::destroyButtons() { for (ButtonArray::iterator i = _buttons.begin(), end = _buttons.end(); i != end; ++i) { removeWidget(i->container); + delete i->container; removeWidget(i->button); + delete i->button; removeWidget(i->description); + delete i->description; } _buttons.clear(); |