Minor cleanup. Fix file handle leak when opening zip files from the main screen.

This commit is contained in:
Henrik Rydgård committed 2025-04-07 15:42:51 +02:00
1 parent 0dec3526a5
commit 605daf879b
5 files changed
+25 -8

No files matched your search

+1
View File
@@ -45,6 +45,7 @@ FileLoader *ConstructFileLoader(const Path &filename) {
}
// TODO : improve, look in the file more
// Does not take ownership.
IdentifiedFileType Identify_File(FileLoader *fileLoader, std::string *errorString) {
errorString->clear();
if (fileLoader == nullptr) {