diff options
author | Nicola Mettifogo | 2008-11-07 11:09:16 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2008-11-07 11:09:16 +0000 |
commit | 203db8686993aa1396dc771b49709f3914ccdec6 (patch) | |
tree | bee03e908098830e9044668bc5d71fcecb3c4077 /common | |
parent | 5bf81acb95cf92c9c45312a542c31aa3bc66a1cd (diff) | |
download | scummvm-rg350-203db8686993aa1396dc771b49709f3914ccdec6.tar.gz scummvm-rg350-203db8686993aa1396dc771b49709f3914ccdec6.tar.bz2 scummvm-rg350-203db8686993aa1396dc771b49709f3914ccdec6.zip |
Fixed leaks in SearchMan. Default directories are now added with the 'autoFree' parameter set to true.
svn-id: r34926
Diffstat (limited to 'common')
-rw-r--r-- | common/archive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/archive.cpp b/common/archive.cpp index b2113a351c..4b1ecd8a6d 100644 --- a/common/archive.cpp +++ b/common/archive.cpp @@ -431,7 +431,7 @@ void SearchManager::addDirectory(const String &name, const FSNode &dir, int prio if (!dir.exists() || !dir.isDirectory()) return; - add(name, new FSDirectory(dir, depth), priority); + add(name, new FSDirectory(dir, depth), priority, true); } void SearchManager::clear() { |