ClearDirectoryFiles(): Corrected issue #994

This commit is contained in:
Ray 2019-10-25 14:29:12 +02:00
parent 3d8b1165a8
commit 39e22046c1

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]);