From: Brian Paul Date: Sun, 14 Feb 2010 17:02:01 +0000 (-0700) Subject: progs/objviewer: close file (bug 26559) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=291bd19a1a16399300022020c93d4d1b253aefc6;p=mesa.git progs/objviewer: close file (bug 26559) --- diff --git a/progs/objviewer/glm.c b/progs/objviewer/glm.c index 7f36cdf28e4..7c964e489d1 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); }