瀏覽代碼

Fix missing fclose in tinyobj loader (#1842)

Missing fclose in tinyobj loader.
pull/1847/head
Guillaume DEVOILLE 3 年之前
committed by GitHub
父節點
當前提交
52f1c7df6d
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. +2
    -0
      src/external/tinyobj_loader_c.h

+ 2
- 0
src/external/tinyobj_loader_c.h 查看文件

@ -948,6 +948,8 @@ static int tinyobj_parse_and_index_mtl_file(tinyobj_material_t **materials_out,
/* @todo { unknown parameter } */
}
fclose(fp);
if (material.name) {
/* Flush last material element */
materials = tinyobj_material_add(materials, num_materials, &material);

Loading…
取消
儲存