mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-19 09:48:15 +00:00
ClearDirectoryFiles(): Corrected issue #994
This commit is contained in:
@@ -1976,7 +1976,7 @@ char **GetDirectoryFiles(const char *dirPath, int *fileCount)
|
|||||||
// Clear directory files paths buffers
|
// Clear directory files paths buffers
|
||||||
void ClearDirectoryFiles(void)
|
void ClearDirectoryFiles(void)
|
||||||
{
|
{
|
||||||
if (dirFilesPath != NULL)
|
if (dirFilesCount > 0)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < MAX_DIRECTORY_FILES; i++) RL_FREE(dirFilesPath[i]);
|
for (int i = 0; i < MAX_DIRECTORY_FILES; i++) RL_FREE(dirFilesPath[i]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user