mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Fixed a potential memory leak when enabling the 'All games' collection.
This commit is contained in:
parent
44cf76095f
commit
595786601e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue