mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-29 09:35:39 +00:00
Fixed a memory leak when filtering MAME BIOSes and devices.
This commit is contained in:
parent
74c7254c6a
commit
e0e358e5f4
|
@ -147,6 +147,9 @@ bool SystemData::populateFolder(FileData* folder)
|
|||
folder->addChild(newGame);
|
||||
isGame = true;
|
||||
}
|
||||
else {
|
||||
delete newGame;
|
||||
}
|
||||
}
|
||||
|
||||
// Add directories that also do not match an extension as folders.
|
||||
|
|
Loading…
Reference in a new issue