summaryrefslogtreecommitdiff
path: root/progs
diff options
context:
space:
mode:
Diffstat (limited to 'progs')
-rw-r--r--progs/objviewer/glm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/progs/objviewer/glm.c b/progs/objviewer/glm.c
index 7f36cdf28e..7c964e489d 100644
--- a/progs/objviewer/glm.c
+++ b/progs/objviewer/glm.c
@@ -421,6 +421,7 @@ _glmReadMTL(GLMmodel* model, char* name)
break;
}
}
+ fclose(file);
}
@@ -475,6 +476,7 @@ _glmWriteMTL(GLMmodel* model, char* modelpath, char* mtllibname)
fprintf(file, "Ns %f\n", material->shininess);
fprintf(file, "\n");
}
+ fclose(file);
}