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 7f36cdf..7c964e4 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);
 }