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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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); |
|
|
|