From: cristy Date: Thu, 24 Sep 2009 18:39:29 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~10643 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bc68eea1d9d4a50fa528d97903a049a1c557aa7;p=imagemagick --- diff --git a/coders/cals.c b/coders/cals.c index 5f4fe6321..90d156bc2 100644 --- a/coders/cals.c +++ b/coders/cals.c @@ -562,7 +562,10 @@ static MagickBooleanType Huffman2DEncodeImage(const ImageInfo *image_info, (void) fflush(file); write_info=DestroyImageInfo(write_info); if (status == MagickFalse) - return(MagickFalse); + { + (void) RelinquishUniqueFileResource(filename); + return(MagickFalse); + } tiff=TIFFOpen(filename,"rb"); if (tiff == (TIFF *) NULL) { diff --git a/coders/pcl.c b/coders/pcl.c index dfad73595..22b5b6298 100644 --- a/coders/pcl.c +++ b/coders/pcl.c @@ -934,7 +934,7 @@ static MagickBooleanType WritePCLImage(const ImageInfo *image_info,Image *image) } } } - (void) WriteBlobString(image,"\033*r0B"); /* end graphics */ + (void) WriteBlobString(image,"\033*rB"); /* end graphics */ switch (image->compression) { case NoCompression: diff --git a/coders/pdf.c b/coders/pdf.c index 6234c88bf..30e309ef0 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -927,7 +927,10 @@ static MagickBooleanType Huffman2DEncodeImage(const ImageInfo *image_info, (void) fflush(file); write_info=DestroyImageInfo(write_info); if (status == MagickFalse) - return(MagickFalse); + { + (void) RelinquishUniqueFileResource(filename); + return(MagickFalse); + } tiff=TIFFOpen(filename,"rb"); if (tiff == (TIFF *) NULL) { diff --git a/coders/ps2.c b/coders/ps2.c index 779ce6784..c6b1912ea 100644 --- a/coders/ps2.c +++ b/coders/ps2.c @@ -256,7 +256,10 @@ static MagickBooleanType Huffman2DEncodeImage(const ImageInfo *image_info, (void) fflush(file); write_info=DestroyImageInfo(write_info); if (status == MagickFalse) - return(MagickFalse); + { + (void) RelinquishUniqueFileResource(filename); + return(MagickFalse); + } tiff=TIFFOpen(filename,"rb"); if (tiff == (TIFF *) NULL) { diff --git a/coders/ps3.c b/coders/ps3.c index f4ef549ab..f7eb69e78 100644 --- a/coders/ps3.c +++ b/coders/ps3.c @@ -270,7 +270,10 @@ static MagickBooleanType Huffman2DEncodeImage(const ImageInfo *image_info, (void) fflush(file); write_info=DestroyImageInfo(write_info); if (status == MagickFalse) - return(MagickFalse); + { + (void) RelinquishUniqueFileResource(filename); + return(MagickFalse); + } tiff=TIFFOpen(filename,"rb"); if (tiff == (TIFF *) NULL) {