Kode / Kha

Ultra-portable, high performance, open source multimedia framework.
http://kha.tech
zlib License
1.48k stars 174 forks source link

[HL] Don't try to close file twice when loading a blob #1376

Closed MoritzBrueckner closed 2 years ago

MoritzBrueckner commented 2 years ago

Closing a file is automatically done in the FileReader's destructor which previously led to an invalid handle exception because Kinc attempted to close the file twice. The now removed line was originally committed before the destructor did call close().