mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-05 09:26:26 +00:00
Fix missing fclose in tinyobj loader (#1842)
Missing fclose in tinyobj loader.
This commit is contained in:

committed by
GitHub

parent
906c7f591e
commit
52f1c7df6d
2
src/external/tinyobj_loader_c.h
vendored
2
src/external/tinyobj_loader_c.h
vendored
@@ -948,6 +948,8 @@ static int tinyobj_parse_and_index_mtl_file(tinyobj_material_t **materials_out,
|
|||||||
/* @todo { unknown parameter } */
|
/* @todo { unknown parameter } */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fclose(fp);
|
||||||
|
|
||||||
if (material.name) {
|
if (material.name) {
|
||||||
/* Flush last material element */
|
/* Flush last material element */
|
||||||
materials = tinyobj_material_add(materials, num_materials, &material);
|
materials = tinyobj_material_add(materials, num_materials, &material);
|
||||||
|
Reference in New Issue
Block a user