mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-04 04:25:34 +00:00
ClearDirectoryFiles() corrected bug
This commit is contained in:
parent
9b6227688f
commit
163a9e1f41
@ -1976,9 +1976,13 @@ char **GetDirectoryFiles(const char *dirPath, int *fileCount)
|
||||
// Clear directory files paths buffers
|
||||
void ClearDirectoryFiles(void)
|
||||
{
|
||||
for (int i = 0; i < MAX_DIRECTORY_FILES; i++) RL_FREE(dirFilesPath[i]);
|
||||
if (dirFilesPath != NULL)
|
||||
{
|
||||
for (int i = 0; i < MAX_DIRECTORY_FILES; i++) RL_FREE(dirFilesPath[i]);
|
||||
|
||||
RL_FREE(dirFilesPath);
|
||||
RL_FREE(dirFilesPath);
|
||||
}
|
||||
|
||||
dirFilesCount = 0;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user