Browse Source

Fix missing fclose in tinyobj loader (#1842)

Missing fclose in tinyobj loader.
pull/1847/head
Guillaume DEVOILLE 3 years ago
committed by GitHub
parent
commit
52f1c7df6d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/external/tinyobj_loader_c.h

+ 2
- 0
src/external/tinyobj_loader_c.h View File

@ -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…
Cancel
Save