Don't try to close invalid files.

This commit is contained in:
Unknown W. Brackets 2014-11-25 11:34:39 -08:00
parent 8222f1ef09
commit 0d8dc48200

View File

@ -215,7 +215,9 @@ LocalFileLoader::LocalFileLoader(const std::string &filename)
}
LocalFileLoader::~LocalFileLoader() {
fclose(f_);
if (!f_) {
fclose(f_);
}
}
bool LocalFileLoader::Exists() {