mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
GRAPHICS: MACGUI: Plug memory leak
This commit is contained in:
parent
81252598e6
commit
cc0cdbbd22
@ -82,6 +82,10 @@ void MacWindowManager::loadDataBundle() {
|
||||
}
|
||||
}
|
||||
|
||||
void MacWindowManager::cleanupDataBundle() {
|
||||
delete _dataBundle;
|
||||
}
|
||||
|
||||
BorderOffsets MacWindowManager::getBorderOffsets(byte windowType) {
|
||||
int i = 0;
|
||||
while (borders[i].type != 0xFF) {
|
||||
|
@ -236,6 +236,8 @@ MacWindowManager::~MacWindowManager() {
|
||||
delete _desktopBmp;
|
||||
delete _desktop;
|
||||
|
||||
cleanupDataBundle();
|
||||
|
||||
g_system->getTimerManager()->removeTimerProc(&menuTimerHandler);
|
||||
}
|
||||
|
||||
|
@ -306,6 +306,7 @@ public:
|
||||
void removeMarked();
|
||||
|
||||
void loadDataBundle();
|
||||
void cleanupDataBundle();
|
||||
BorderOffsets getBorderOffsets(byte windowType);
|
||||
Common::SeekableReadStream *getBorderFile(byte windowType, uint32 flags);
|
||||
Common::SeekableReadStream *getFile(const Common::String &filename);
|
||||
|
Loading…
Reference in New Issue
Block a user