From e0e358e5f4491576ab40a261f2742ac83c748c3c Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sun, 28 Feb 2021 16:37:22 +0100 Subject: [PATCH] Fixed a memory leak when filtering MAME BIOSes and devices. --- es-app/src/SystemData.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/es-app/src/SystemData.cpp b/es-app/src/SystemData.cpp index 57b7122c5..3328bdd1e 100644 --- a/es-app/src/SystemData.cpp +++ b/es-app/src/SystemData.cpp @@ -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.