blob: 469e3b9efafb7affb2e088c56bff5ae613b0530a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- codecs/jpeg.cc.orig 2017-08-08 14:31:16 UTC
+++ codecs/jpeg.cc
@@ -901,7 +901,7 @@ bool JPEGCodec::readMeta (std::istream* stream, Image&
// If we get here, the JPEG code has signaled an error.
// We need to clean up the JPEG object, close the input file, and return.
jpeg_destroy_decompress (cinfo);
- free (cinfo);
+ delete cinfo;
return false;
}
|