ClearDirectoryFiles() corrected bug
This commit is contained in:
parent
9b6227688f
commit
163a9e1f41
1 changed files with 6 additions and 2 deletions
|
@ -1975,10 +1975,14 @@ 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)
|
||||||
{
|
{
|
||||||
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]);
|
||||||
|
|
||||||
RL_FREE(dirFilesPath);
|
RL_FREE(dirFilesPath);
|
||||||
|
}
|
||||||
|
|
||||||
dirFilesCount = 0;
|
dirFilesCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue