fix memleak when uploading addons.

This commit is contained in:
gfgtdf 2017-04-28 00:02:44 +02:00 committed by GitHub
parent f9b4b5681f
commit b8a76bed9d

View file

@ -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);