瀏覽代碼

REVIEWED: UnloadDirectoryFiles()

pull/2808/head
Ray 2 年之前
父節點
當前提交
c0010105c2
共有 1 個檔案被更改,包括 3 行新增5 行删除
  1. +3
    -5
      src/rcore.c

+ 3
- 5
src/rcore.c 查看文件

@ -3188,14 +3188,12 @@ FilePathList LoadDirectoryFilesEx(const char *basePath, const char *filter, bool
}
// Unload directory filepaths
// WARNING: files.count is not reseted to 0 after unloading
void UnloadDirectoryFiles(FilePathList files)
{
if (files.count > 0)
{
for (unsigned int i = 0; i < files.count; i++) RL_FREE(files.paths[i]);
for (unsigned int i = 0; i < files.capacity; i++) RL_FREE(files.paths[i]);
RL_FREE(files.paths);
}
RL_FREE(files.paths);
}
// Change working directory, returns true on success

Loading…
取消
儲存