GUI: Fix small memory leak in grid based load chooser.
This commit is contained in:
parent
3256081b2b
commit
049e61b445
2 changed files with 6 additions and 0 deletions
|
@ -502,6 +502,11 @@ LoadChooserThumbnailed::LoadChooserThumbnailed(const Common::String &title)
|
|||
_pageDisplay->setAlign(Graphics::kTextAlignRight);
|
||||
}
|
||||
|
||||
LoadChooserThumbnailed::~LoadChooserThumbnailed() {
|
||||
removeWidget(_pageDisplay);
|
||||
delete _pageDisplay;
|
||||
}
|
||||
|
||||
const Common::String &LoadChooserThumbnailed::getResultString() const {
|
||||
// FIXME: This chooser is only for loading, thus the result is never used
|
||||
// anyway. But this is still an ugly hack.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue