mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
GUI: Fix small memory leak in grid based load chooser.
This commit is contained in:
parent
3256081b2b
commit
049e61b445
@ -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.
|
||||
|
@ -112,6 +112,7 @@ private:
|
||||
class LoadChooserThumbnailed : public SaveLoadChooserDialog {
|
||||
public:
|
||||
LoadChooserThumbnailed(const Common::String &title);
|
||||
~LoadChooserThumbnailed();
|
||||
|
||||
virtual const Common::String &getResultString() const;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user