Close opened directory (#5529)

This commit is contained in:
Alexander Fasching
2026-02-04 19:42:44 +01:00
committed by GitHub
parent 4c1efc2bd3
commit a96cbe0183

View File

@ -3004,6 +3004,7 @@ unsigned int GetDirectoryFileCountEx(const char *basePath, const char *filter, b
}
}
}
closedir(dir);
}
else TRACELOG(LOG_WARNING, "FILEIO: Directory cannot be opened (%s)", basePath); // Maybe it's a file...
return fileCounter;