summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuillaume DEVOILLE <[email protected]>2021-06-22 18:12:42 +0200
committerGitHub <[email protected]>2021-06-22 18:12:42 +0200
commit52f1c7df6d6743a9078b9d56f68770b40c02b2db (patch)
treefb8e052302ee3eec4a05857ede4c12abfd424e70
parent906c7f591e3313a97479caa35c2006501b888fde (diff)
downloadraylib-52f1c7df6d6743a9078b9d56f68770b40c02b2db.tar.gz
raylib-52f1c7df6d6743a9078b9d56f68770b40c02b2db.zip
Fix missing fclose in tinyobj loader (#1842)
Missing fclose in tinyobj loader.
-rw-r--r--src/external/tinyobj_loader_c.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/external/tinyobj_loader_c.h b/src/external/tinyobj_loader_c.h
index 6bd63fce..6d34d25f 100644
--- a/src/external/tinyobj_loader_c.h
+++ b/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);