Browse Source

ClearDirectoryFiles(): Corrected issue #994

pull/999/head
Ray 5 years ago
parent
commit
39e22046c1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/core.c

+ 1
- 1
src/core.c View File

@ -1976,7 +1976,7 @@ char **GetDirectoryFiles(const char *dirPath, int *fileCount)
// Clear directory files paths buffers
void ClearDirectoryFiles(void)
{
if (dirFilesPath != NULL)
if (dirFilesCount > 0)
{
for (int i = 0; i < MAX_DIRECTORY_FILES; i++) RL_FREE(dirFilesPath[i]);

Loading…
Cancel
Save