summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-01 15:52:30 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-01 15:52:30 +0000
commit8f1552ad72c995aceaec1b90fc3cce2942bfcf31 (patch)
tree6d12a93d3e8f8369fd2cfaf63973079a085d906a
parent09eb707ebc71eff523d86b40a37134f2e0a7ddf7 (diff)
Fix small memory leak on decompression.
-rw-r--r--src/util.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util.cc b/src/util.cc
index 26fe1b5e..59078511 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -212,6 +212,7 @@ libdcp::decompress_j2k (uint8_t* data, int64_t size, int reduce)
boost::throw_exception (DCPReadError ("could not decode JPEG2000 codestream of " + lexical_cast<string> (size) + " bytes."));
}
+ opj_destroy_decompress (decoder);
opj_cio_close (cio);
image->x1 = rint (float(image->x1) / pow (2, reduce));