summaryrefslogtreecommitdiff
path: root/graphics/pfstools/files/patch-src-fileformat-pfsinjpeghdr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pfstools/files/patch-src-fileformat-pfsinjpeghdr.cpp')
-rw-r--r--graphics/pfstools/files/patch-src-fileformat-pfsinjpeghdr.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/graphics/pfstools/files/patch-src-fileformat-pfsinjpeghdr.cpp b/graphics/pfstools/files/patch-src-fileformat-pfsinjpeghdr.cpp
deleted file mode 100644
index b6c15dd9255e..000000000000
--- a/graphics/pfstools/files/patch-src-fileformat-pfsinjpeghdr.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
---- src/fileformat/pfsinjpeghdr.cpp.orig 2005-11-04 08:54:27 UTC
-+++ src/fileformat/pfsinjpeghdr.cpp
-@@ -123,8 +123,8 @@ void readFrames( int argc, char* argv[]
- case JPEG_HEADER_HDR: // HDR image
- jpeghdr_start_decompress(&jhinf);
- frame = pfsio.createFrame( jhinf.cinfo.output_width, jhinf.cinfo.output_height );
-- hdrscan = (JHSAMPLE *)malloc(jhinf.cinfo.output_width * jhinf.cinfo.output_height *
-- sizeof(JHSAMPLE)*3);
-+ hdrscan =
-+ new JHSAMPLE[jhinf.cinfo.output_width * jhinf.cinfo.output_height * 3];
- // Important: test jhinf.output_scanline, not jhinf.cinfo
- int index ;
- index = 0;
-@@ -144,7 +144,7 @@ void readFrames( int argc, char* argv[]
- (Z->getRawData())[i] = hdrscan[3*i + 2];
- }
- pfs::transformColorSpace( pfs::CS_RGB, X, Y, Z, pfs::CS_XYZ, X, Y, Z );
-- free((void *)hdrscan);
-+ delete[] hdrscan;
- break;
- case JPEG_HEADER_OK: // LDR image
- case JPEG_SUSPENDED: