瀏覽代碼
Fix missing fclose in tinyobj loader (#1842)
Missing fclose in tinyobj loader.
pull/1847/head
Guillaume DEVOILLE
3 年之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 4AEE18F83AFDEB23
共有
1 個檔案被更改,包括
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); |
|
|
|