progs/objviewer: close file (bug 26559)
authorBrian Paul <brianp@vmware.com>
Sun, 14 Feb 2010 17:02:01 +0000 (10:02 -0700)
committerBrian Paul <brianp@vmware.com>
Sun, 14 Feb 2010 17:05:42 +0000 (10:05 -0700)
progs/objviewer/glm.c

index 7f36cdf28e4374c2118f1cb0141480abbc95c86c..7c964e489d18ddab40d1e0f0b72ad84dc3225c38 100644 (file)
@@ -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);
 }