fix memleak when uploading addons.
This commit is contained in:
parent
f9b4b5681f
commit
b8a76bed9d
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ static std::pair<std::vector<std::string>, std::vector<std::string> > read_ignor
|
|||
return patterns; // just default patterns
|
||||
}
|
||||
LOG_CFG << "found .ign file: " << ign_file << '\n';
|
||||
std::istream *stream = filesystem::istream_file(ign_file).release();
|
||||
auto stream = filesystem::istream_file(ign_file);
|
||||
std::string line;
|
||||
while (std::getline(*stream, line)) {
|
||||
boost::trim(line);
|
||||
|
|
Loading…
Add table
Reference in a new issue