Browse Source

ClearDirectoryFiles() corrected bug

pull/999/head
Ray 5 years ago
parent
commit
163a9e1f41
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      src/core.c

+ 6
- 2
src/core.c View File

@ -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…
Cancel
Save