mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Close the target file in CLogFileTarget's destructor
This commit is contained in:
@@ -402,3 +402,7 @@ void CLogFileTarget::write(const LogRecord & record)
|
||||
|
||||
const CLogFormatter & CLogFileTarget::getFormatter() const { return formatter; }
|
||||
void CLogFileTarget::setFormatter(const CLogFormatter & formatter) { this->formatter = formatter; }
|
||||
|
||||
CLogFileTarget::~CLogFileTarget() {
|
||||
file.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user