From 595786601e969d3d45ca2c080548d066f0bddd68 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 27 Dec 2021 16:05:58 +0100 Subject: [PATCH] Fixed a potential memory leak when enabling the 'All games' collection. --- es-app/src/CollectionSystemsManager.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/es-app/src/CollectionSystemsManager.cpp b/es-app/src/CollectionSystemsManager.cpp index 3f2921e56..7f19be2d5 100644 --- a/es-app/src/CollectionSystemsManager.cpp +++ b/es-app/src/CollectionSystemsManager.cpp @@ -999,7 +999,6 @@ void CollectionSystemsManager::repopulateCollection(SystemData* sysData) // Flag the collection as not populated so it gets repopulated. autoSystem->isPopulated = false; - populateAutoCollection(autoSystem); if (systemEntries.empty()) return; @@ -1013,7 +1012,6 @@ void CollectionSystemsManager::repopulateCollection(SystemData* sysData) // Reset the filters so that they get rebuilt correctly when populating the collection. autoSystem->system->getIndex()->resetIndex(); - autoSystem->isPopulated = false; populateAutoCollection(autoSystem); // The cursor value is now pointing to some random memory address so we need to set