ソースを参照

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);

読み込み中…
キャンセル
保存