diff --git a/Source/Windows/Common/CRT/IO.cpp b/Source/Windows/Common/CRT/IO.cpp index dd2cb0af03..fc18e360b1 100644 --- a/Source/Windows/Common/CRT/IO.cpp +++ b/Source/Windows/Common/CRT/IO.cpp @@ -36,6 +36,10 @@ struct FILE { : Handle {Handle} , FileHandle {FileHandle} , Append {Append} {} + + ~FILE() { + CloseHandle(Handle); + } }; namespace {