1 parent b82cf60 commit bb0a746Copy full SHA for bb0a746
1 file changed
src/AppInstallerCommonCore/FileLogger.cpp
@@ -37,6 +37,9 @@ namespace AppInstaller::Logging
37
FileLogger::~FileLogger()
38
{
39
m_stream.flush();
40
+ // When std::ofstream is constructed from an existing File handle, it does not call fclose on destruction
41
+ // Only calling close() explicitly will close the file handle.
42
+ m_stream.close();
43
}
44
45
std::string FileLogger::GetNameForPath(const std::filesystem::path& filePath)
0 commit comments