SCI: Fix leaks in ResourceManager::listResources caller code.
svn-id: r51666
This commit is contained in:
parent
a1001731fa
commit
dd38e424e7
5 changed files with 8 additions and 2 deletions
|
@ -299,7 +299,7 @@ Common::String convertSierraGameId(Common::String sierraId, uint32 *gameFlags, R
|
|||
if (sierraId == "fp" || sierraId == "gk" || sierraId == "pq4")
|
||||
demoThreshold = 150;
|
||||
|
||||
Common::List<ResourceId> *resources = resMan->listResources(kResourceTypeScript, -1);
|
||||
Common::ScopedPtr<Common::List<ResourceId> > resources(resMan->listResources(kResourceTypeScript, -1));
|
||||
if (resources->size() < demoThreshold) {
|
||||
*gameFlags |= ADGF_DEMO;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue