]> git.saurik.com Git - wxWidgets.git/blobdiff - src/tiff/contrib/dbs/tiff-grayscale.c
Merged libtiff 4.0.3 changes into the trunk.
[wxWidgets.git] / src / tiff / contrib / dbs / tiff-grayscale.c
index 551d254fb72b076d1adc9bd404461b56a761c9fd..e53c571808a9a1a9b041075ce7e89a5814d264e3 100644 (file)
@@ -86,6 +86,7 @@ int main(int argc, char **argv)
 
     if ((tif = TIFFOpen(argv[3], "w")) == NULL) {
         fprintf(stderr, "can't open %s as a TIFF file\n", argv[3]);
+               free(gray);
         return 0;
     }
 
@@ -137,3 +138,10 @@ Usage()
     fprintf(stderr, "Usage: %s -depth (8 | 4 | 2) tiff-image\n", programName);
     exit(0);
 }
+/*
+ * Local Variables:
+ * mode: c
+ * c-basic-offset: 8
+ * fill-column: 78
+ * End:
+ */